aboutsummaryrefslogtreecommitdiffstats
path: root/main/bcache-tools/APKBUILD
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2014-05-11 01:33:05 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2014-05-11 01:33:33 +0000
commitca7e529a36790a5baa1dcab98a8e55d2f3a094ce (patch)
tree182532feb802bbcfb171945cc5d05083b7e1aaed /main/bcache-tools/APKBUILD
parent99cbabfef1e156ff608c4166a8dec0ce8b5a3a0a (diff)
downloadaports-ca7e529a36790a5baa1dcab98a8e55d2f3a094ce.tar.bz2
aports-ca7e529a36790a5baa1dcab98a8e55d2f3a094ce.tar.xz
main/bcache-tools: new aport
Diffstat (limited to 'main/bcache-tools/APKBUILD')
-rw-r--r--main/bcache-tools/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/bcache-tools/APKBUILD b/main/bcache-tools/APKBUILD
new file mode 100644
index 0000000000..e9988cb0e2
--- /dev/null
+++ b/main/bcache-tools/APKBUILD
@@ -0,0 +1,45 @@
+# 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=""
+makedepends="$depends_dev udev-dev util-linux-dev"
+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"