APKBUILD 1.21 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2 3 4 5 6 7 8 9 10
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=bcache-tools
pkgver=0.9_git20140510
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 14 15 16 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 43 44 45
install=""
subpackages="$pkgname-doc"
source="http://turtle.dereferenced.org/~kaniini/bcache-tools-$pkgver.tar.gz"

_builddir="$srcdir"/bcache-tools
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
}

md5sums="da36d09635cbe1cf3eb48b3d202192b3  bcache-tools-0.9_git20140510.tar.gz"
sha256sums="50e33c5d89828b991f67dae0fd8c1948b657ad045388b7422248b0e3636065d6  bcache-tools-0.9_git20140510.tar.gz"
sha512sums="2dd5b4c0c38bac444aa37e87def5076bfb4283a8057f35f1e6c08e766c6a240fd2013221196ff8d58ac1934754b4e57ddb320d61af8838a74dfed39eb89dcd73  bcache-tools-0.9_git20140510.tar.gz"