aboutsummaryrefslogtreecommitdiffstats
path: root/main/fuse/APKBUILD
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2018-03-28 16:26:42 -0400
committerSören Tempel <soeren+git@soeren-tempel.net>2018-03-28 22:54:30 +0200
commita85d9b7182d4d859ec92693f12e354cf7fb070a4 (patch)
treecd85015c3cedd6e3f1e051818ad5b7a649196d22 /main/fuse/APKBUILD
parentefd2c9c3dc8d590ca41a03987fd45452b63d8f46 (diff)
downloadaports-a85d9b7182d4d859ec92693f12e354cf7fb070a4.tar.bz2
aports-a85d9b7182d4d859ec92693f12e354cf7fb070a4.tar.xz
main/fuse: modernize APKBUILD
Diffstat (limited to 'main/fuse/APKBUILD')
-rw-r--r--main/fuse/APKBUILD36
1 files changed, 9 insertions, 27 deletions
diff --git a/main/fuse/APKBUILD b/main/fuse/APKBUILD
index 26ec743522..064b73384f 100644
--- a/main/fuse/APKBUILD
+++ b/main/fuse/APKBUILD
@@ -5,7 +5,7 @@ pkgrel=0
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
url="https://github.com/libfuse/"
arch="all"
-license="GPL-2.0"
+license="LGPL-2.0-only GPL-2.0-only"
depends=
makedepends="gettext-dev"
install=
@@ -13,22 +13,11 @@ subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/libfuse/libfuse/releases/download/fuse-$pkgver/fuse-$pkgver.tar.gz
fix-realpath.patch
fuse.initd"
-options="suid"
-
-
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+options="suid !check" # No test suite.
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -38,15 +27,14 @@ build() {
--disable-example \
--enable-lib \
--enable-util \
- --bindir=/bin \
- || return 1
- make || return 1
+ --bindir=/bin
+ make
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
- rm -r "$pkgdir"/dev "$pkgdir"/etc/init.d || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ rm -r "$pkgdir"/dev "$pkgdir"/etc/init.d
install -Dm755 "$srcdir"/fuse.initd "$pkgdir"/etc/init.d/fuse
# create config
@@ -65,12 +53,6 @@ _EOF_
}
-md5sums="9bd4ce8184745fd3d000ca2692adacdb fuse-2.9.7.tar.gz
-790b837275346e77d5f88a4778062ab7 fix-realpath.patch
-45fb51535c96a7d1fe2eb9690ac48814 fuse.initd"
-sha256sums="832432d1ad4f833c20e13b57cf40ce5277a9d33e483205fc63c78111b3358874 fuse-2.9.7.tar.gz
-9031e6df6e0b3e46c7e0117bba6e2eeb879de8d742dc54f592a16033d4dda89b fix-realpath.patch
-66ce65e2459fef26bb1711d706a23643a9af7a80e03ee6be836a377310b00682 fuse.initd"
sha512sums="f47304d9c7a1815f7a2905b7bdb7785d4c10292a80c8dc1ec45d895af96bc6ffd6d84ff2617bd976a1d0867ab8ec1a404a5a05ace85a69ecca830f371d08f8e2 fuse-2.9.7.tar.gz
5672ceb35acabb4bd97b6efc30614f22def62882fe198e2a8598a074d45b6b5337c082a5e09b5e399b6e5212dc1fbde9071c2a5051534c32091444c350b9c657 fix-realpath.patch
7f6a503ef23cfa8b809c544375c2d83ad56525269b48ad1a7dff0ce36f4bf2f2a3fafed9dc70a71ff6281b261db5f01829e16c06f041921a5d8c8d715a04a8c1 fuse.initd"