summaryrefslogtreecommitdiffstats
path: root/afpfs-ng/Pkgfile
blob: a64bd6ddcaecf7b96f5256d5a1edf1b47b8c6374 (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
# Description: Le protocole AFP
# URL:http://alexthepuffin.googlepages.com/
# Maintainer: NuTyX core team
# Packager: el diablo
# Depends on: gmp,fuse,libgcrypt
# Run on: gmp,fuse,libgcrypt

name=afpfs-ng
version=0.8.1
release=1
source=(http://downloads.sourceforge.net/sourceforge/$name/$name-$version.tar.bz2
	fix_afpfs-ng_includes.patch
	01-gcrypt.patch
	02-pointer.patch
	10-fix-errno.patch
	20-build-error-fixes.patch
	21-header-path-fix.patch
	30-include-fixes.patch)
build() {
cd $name-$version
	patch -Np1 -i "$SRC/fix_afpfs-ng_includes.patch"
	
	patch -Np1 -i "$SRC/01-gcrypt.patch"
	
	patch -Np1 -i "$SRC/02-pointer.patch"
	
	patch -Np1 -i "$SRC/10-fix-errno.patch"
	
	patch -Np1 -i "$SRC/20-build-error-fixes.patch"
	
	patch -Np1 -i "$SRC/21-header-path-fix.patch"
	
	patch -Np1 -i "$SRC/30-include-fixes.patch"

	./configure --prefix=/usr
	make
	make DESTDIR="$PKG" install
	cd include
	for header in afpfs-ng/*.h; do
		install -Dm644 "$header" "$PKG/usr/include/$header"
	done
}