summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e9322d0b96f18a90e81aaa2f776700268702f64b (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: François-Xavier Payet <fx.payet@tfdn.org>
pkgname=snapraid-btrfs-git
pkgver=0.14.1
pkgrel=1
pkgdesc="snapraid-btrfs is a script for using SnapRAID with data drives which are formatted with btrfs."
arch=('any')
url="https://github.com/automorphism88/snapraid-btrfs.git"
license=('GPL3')
depends=('bash')
optdepends=('snapraid: tool for Snapshot RAID')
makedepends=('git') # 'bzr', 'git', 'mercurial' or 'subversion'
source=('git+https://github.com/automorphism88/snapraid-btrfs')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "%s" "$(git describe --tags | cut -c 2- | cut -d - -f 1)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755 "$srcdir/${pkgname%-git}/snapraid-btrfs" "$pkgdir/usr/bin/snapraid-btrfs"
}