APKBUILD 1.95 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=fuse
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=2.9.3
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Natanael Copa's avatar
Natanael Copa committed
5 6
pkgdesc="A library that makes it possible to implement a filesystem in a userspace program."
url="http://fuse.sourceforge.net/"
7
arch="all"
Natanael Copa's avatar
Natanael Copa committed
8 9
license="GPL2"
depends=
Natanael Copa's avatar
Natanael Copa committed
10
makedepends="pkgconfig libiconv-dev gettext-dev"
Natanael Copa's avatar
Natanael Copa committed
11 12 13 14 15 16 17 18 19 20
install=
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	fuse.initd"


_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	cd "$_builddir"
21
	update_config_sub || return 1
Natanael Copa's avatar
Natanael Copa committed
22 23 24 25 26
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
Natanael Copa's avatar
Natanael Copa committed
27 28 29 30
}

build() {
	cd "$_builddir"
31 32 33 34
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Natanael Copa's avatar
Natanael Copa committed
35 36 37
		--disable-static \
		--enable-shared \
		--disable-example \
Natanael Copa's avatar
Natanael Copa committed
38 39 40 41 42 43 44 45 46 47
		--enable-lib \
		--enable-util \
		--bindir=/bin \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
Natanael Copa's avatar
Natanael Copa committed
48 49 50
	rm -r "$pkgdir"/usr/lib/*.la \
		"$pkgdir"/dev \
		"$pkgdir"/etc/init.d || return 1
Natanael Copa's avatar
Natanael Copa committed
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68

	install -Dm755 "$srcdir"/fuse.initd "$pkgdir"/etc/init.d/fuse
	# create config
	install -d "$pkgdir"/etc
	cat >"$pkgdir"/etc/fuse.conf << _EOF_
# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#
#mount_max = 1000

# Allow non-root users to specify the 'allow_other' or 'allow_root'
# mount options.
#
#user_allow_other
_EOF_

}

Natanael Copa's avatar
Natanael Copa committed
69
md5sums="33cae22ca50311446400daf8a6255c6a  fuse-2.9.3.tar.gz
Natanael Copa's avatar
Natanael Copa committed
70
5983726cfabf0830dffbbbf9a3abcddc  fuse.initd"
Natanael Copa's avatar
Natanael Copa committed
71 72 73 74
sha256sums="0beb83eaf2c5e50730fc553406ef124d77bc02c64854631bdfc86bfd6437391c  fuse-2.9.3.tar.gz
22a22c914d2a4f0fb5fc8495f4b7efcd1819efde548c9033ca612c181cd29eda  fuse.initd"
sha512sums="03f43f88694ec7e039ff3579a8e76349b5a5a05872c55901fc1d9ee53dbb6b1e69f6dd0005b620f3b5ead0b14da8eeb31d46b922d10f88f4e3f830aa47e8162c  fuse-2.9.3.tar.gz
3d2765114081c8f6720ed25d7b7da4f6da5fbbb5b35760bb0a760f0bf2482abacabec63c1488d4e8cbe4f78875574607e6e46508dfe22df0869f4d2e1e91e607  fuse.initd"