APKBUILD 1.2 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=bcache-tools
3
pkgver=1.0.8
Ariadne Conill's avatar
Ariadne Conill committed
4 5 6 7 8 9 10
pkgrel=0
pkgdesc="tools for managing bcache"
url="http://bcache.evilpiepirate.org/"
arch="all"
license="GPL"
depends=""
depends_dev=""
11
makedepends="$depends_dev udev-dev util-linux-dev linux-headers coreutils"
Ariadne Conill's avatar
Ariadne Conill committed
12 13
install=""
subpackages="$pkgname-doc"
14
source="$pkgname-$pkgver.tar.gz::https://github.com/g2p/bcache-tools/archive/v$pkgver.tar.gz"
Ariadne Conill's avatar
Ariadne Conill committed
15

16
_builddir="$srcdir"/bcache-tools-$pkgver
Ariadne Conill's avatar
Ariadne Conill committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"

	mkdir -p "$pkgdir"/usr/sbin
	mkdir -p "$pkgdir"/usr/share/man/man8
	mkdir -p "$pkgdir"/lib/udev/rules.d

	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

43 44 45
md5sums="d1632a7c37214e0aa38f3cf95624fa46  bcache-tools-1.0.8.tar.gz"
sha256sums="d56923936f37287efc57a46315679102ef2c86cd0be5874590320acd48c1201c  bcache-tools-1.0.8.tar.gz"
sha512sums="21eaed457e5de623089c0d4e1c11394a3950f29c749c502bfd5dd94d3dcdc7379c4a910825e33bf9fc8080df656949b94a1a28d19048a8eb6422976cb391b7dc  bcache-tools-1.0.8.tar.gz"