aboutsummaryrefslogtreecommitdiffstats
path: root/main/afpfs-ng/APKBUILD
blob: d5f94c37169996953cde8b5f64e2937dd15d621b (plain)
1
2
3
4
5
6
7
8
9
10
11
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=afpfs-ng
pkgver=0.8.1
pkgrel=0
pkgdesc="A client for the Apple Filing Protocol (AFP)"
url="http://alexthepuffin.googlepages.com/"
arch="all"
license="GPL"
depends=""
depends_dev="libgcrypt-dev libiconv-dev readline-dev ncurses-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/afpfs-ng/afpfs-ng-$pkgver.tar.bz2
	00-afpfs-ng-0.8.1-fix_afpfs-ng_includes.patch
	01-afpfs-ng-0.8.1-gcrypt.patch
	02-afpfs-ng-0.8.1-pointer.patch
	03-afpfs-ng-0.8.1-boxee1.patch
	04-afpfs-ng-0.8.1-boxee2.patch
	05-afpfs-ng-0.8.1-boxee3.patch
	06-afpfs-ng-0.8.1-boxee4.patch
	07-afpfs-ng-0.8.1-boxee5.patch
	08-afpfs-ng-0.8.1-fix-errno.patch
	09-afpfs-ng-0.8.1-fix-stat.patch"

_builddir="$srcdir"/afpfs-ng-$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"
	autoreconf -vif || return 1
	if [ "$ALPINE_LIBC" != "eglibc" ]; then
		export LDFLAGS="$LDFLAGS -liconv"
	fi
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gcrypt \
		--disable-fuse \
		|| return 1
	make -j1 || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="1bdd9f8a06e6085ea4cc38ce010ef60b  afpfs-ng-0.8.1.tar.bz2
58abc3987e173131e655767a49a18530  00-afpfs-ng-0.8.1-fix_afpfs-ng_includes.patch
2a1d7a0147bd089c92ba741dc73b88e4  01-afpfs-ng-0.8.1-gcrypt.patch
b9c9596339c25c104c0241fe06826ca8  02-afpfs-ng-0.8.1-pointer.patch
44fc84e69a0f61192f0d3fd33016b719  03-afpfs-ng-0.8.1-boxee1.patch
1bd7aaa364309bc1b57c6314c8e262f0  04-afpfs-ng-0.8.1-boxee2.patch
43ec7eafc6c3b94d1fe0d7a27ff8650e  05-afpfs-ng-0.8.1-boxee3.patch
e7355dffc31cd9ce10bb968994eb15f6  06-afpfs-ng-0.8.1-boxee4.patch
34b6385ca2fd96caeac807581c4d169f  07-afpfs-ng-0.8.1-boxee5.patch
eecc51996ab49a578f760b586106c16b  08-afpfs-ng-0.8.1-fix-errno.patch
2520ba3a39a97d2d29ee65767a1007ec  09-afpfs-ng-0.8.1-fix-stat.patch"