summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7159e4d6e1ac44b5fa6ad1521e0b1d916afd97be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Celestial.y <celestial.y at outlook dot com>

pkgname=butter-snap-git
pkgver=0.1.0
pkgrel=1
pkgdesc="Bash-based tool for automating Btrfs snapshots."
arch=(any)
url=https://github.com/clsty/butter-snap
license=(GPL-3.0-only)
depends=(btrfs-progs bash)
optdepends=('cronie: cronjob support')
makedepends=('git')
provides=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  printf "%s" "$(git -C $pkgname describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  install -Dm755 "$pkgname/buttersnap" -t "$pkgdir/usr/bin"
}