aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-05 03:39:52 -0300
committerFrancesco Colista <fcolista@alpinelinux.org>2019-06-05 07:18:25 +0000
commit8ee62d84ed4bae9da8d0507a63d39d35b5bb2a5b (patch)
tree1a08527c2ece0c1464a79e46b4fbe125ad11851f
parent5e1d9ad71e1366c766c70e4c6ea361f7aef34be6 (diff)
downloadaports-8ee62d84ed4bae9da8d0507a63d39d35b5bb2a5b.tar.bz2
aports-8ee62d84ed4bae9da8d0507a63d39d35b5bb2a5b.tar.xz
main/bcache-tools: modernize, fix license
-rw-r--r--main/bcache-tools/APKBUILD30
1 files changed, 7 insertions, 23 deletions
diff --git a/main/bcache-tools/APKBUILD b/main/bcache-tools/APKBUILD
index 4d9ace5d00..42b98acdee 100644
--- a/main/bcache-tools/APKBUILD
+++ b/main/bcache-tools/APKBUILD
@@ -1,44 +1,28 @@
-# Maintainer:
+# Maintainer:
pkgname=bcache-tools
pkgver=1.0.8
-pkgrel=1
+pkgrel=2
pkgdesc="tools for managing bcache"
url="https://bcache.evilpiepirate.org/"
arch="all"
-license="GPL"
-depends=""
-depends_dev=""
-makedepends="$depends_dev eudev-dev util-linux-dev linux-headers coreutils"
-install=""
+license="GPL-2.0-only"
+makedepends="eudev-dev util-linux-dev linux-headers coreutils"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/g2p/bcache-tools/archive/v$pkgver.tar.gz
gcc5.patch
"
-_builddir="$srcdir"/bcache-tools-$pkgver
-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
+ cd "$builddir"
+ make
}
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
+ make DESTDIR="$pkgdir" install
}
md5sums="d1632a7c37214e0aa38f3cf95624fa46 bcache-tools-1.0.8.tar.gz