summaryrefslogtreecommitdiff
path: root/community/afpfs-ng/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-03-30 10:35:40 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-03-30 10:35:40 +0200
commit1addb62992395c33a9762e6b68259c59fa0c96f4 (patch)
tree00d001e3a93cfb3a3b1f27f9cd52fcb58bb70999 /community/afpfs-ng/PKGBUILD
parent2d0e587bd1c7ac060a95a0e20cfe00ab19db7e14 (diff)
parent263884f95012e159a0be10444ef96bbf56e70545 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/sword/PKGBUILD extra/imagemagick/PKGBUILD gnome-unstable/empathy/PKGBUILD gnome-unstable/gcr/PKGBUILD gnome-unstable/gnome-dictionary/PKGBUILD gnome-unstable/gnome-keyring/PKGBUILD gnome-unstable/gnome-screenshot/PKGBUILD gnome-unstable/gnome-terminal/PKGBUILD gnome-unstable/gucharmap/PKGBUILD gnome-unstable/gucharmap/gucharmap.install gnome-unstable/libgnome-keyring/PKGBUILD gnome-unstable/librsvg/PKGBUILD gnome-unstable/mousetweaks/PKGBUILD gnome-unstable/pygobject/PKGBUILD gnome-unstable/seahorse/PKGBUILD testing/gcc/PKGBUILD
Diffstat (limited to 'community/afpfs-ng/PKGBUILD')
-rw-r--r--community/afpfs-ng/PKGBUILD66
1 files changed, 66 insertions, 0 deletions
diff --git a/community/afpfs-ng/PKGBUILD b/community/afpfs-ng/PKGBUILD
new file mode 100644
index 000000000..f8dc2d6fc
--- /dev/null
+++ b/community/afpfs-ng/PKGBUILD
@@ -0,0 +1,66 @@
+# $Id: PKGBUILD 68567 2012-03-28 10:22:57Z idevolder $
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+# Contributor: slubman <slubman.dndd@laposte.net>
+
+pkgname=afpfs-ng
+pkgver=0.8.1
+pkgrel=5
+pkgdesc="A client for the Apple Filing Protocol (AFP)"
+url="http://alexthepuffin.googlepages.com/"
+license=('GPL')
+depends=('gmp' 'fuse' 'libgcrypt')
+arch=('i686' 'x86_64')
+options=(!libtool)
+source=(
+ "http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.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'
+)
+sha256sums=(
+ '688560de1cde57ab8d9e0ef7dc6436dbf0267fe8884f9014e50ff92b297b01a8'
+ '627d94ab3c1cbc002b18839f514c6fa980b0a25dfc21e8761b389fcd39f32755'
+ '18dc77b064fc02c229e0cfa071a7e31cde6d0243671ebde2f561ebdf09dc38bb'
+ '8537b086c496e776be2a6757325717cb15dee6dcf2aedccebed6b4b2332d3dc1'
+ '0e1c0c0e3a9ff6e55ccbbbc1b4de630c874ff058e2ea94360b7d90e650d04811'
+ '393662da1bcd5d3aba180a2add37d9006e0a487c3bb7bf157a15aa492f4d6a87'
+ 'f551ae9debe8ce2c4ed1d7a8bce497801ace995473876a5fefa0443353232477'
+ '71b8f52923cef39f0cccb8fdff610575958fd5dbed66e5aa4413ae6aceeec656'
+)
+
+build() {
+ cd "$pkgname-$pkgver"
+ # apply patches
+ msg2 'fix_afpfs-ng_includes.patch'
+ patch -Np1 -i "$srcdir/fix_afpfs-ng_includes.patch"
+ msg2 '01-gcrypt.patch'
+ patch -Np1 -i "$srcdir/01-gcrypt.patch"
+ msg2 '02-pointer.patch'
+ patch -Np1 -i "$srcdir/02-pointer.patch"
+ msg2 '10-fix-errno.patch'
+ patch -Np1 -i "$srcdir/10-fix-errno.patch"
+ msg2 '20-build-error-fixes.patch'
+ patch -Np1 -i "$srcdir/20-build-error-fixes.patch"
+ msg2 '21-header-path-fix.patch'
+ patch -Np1 -i "$srcdir/21-header-path-fix.patch"
+ msg2 '30-include-fixes.patch'
+ patch -Np1 -i "$srcdir/30-include-fixes.patch"
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ # install headers
+ cd include
+ for header in afpfs-ng/*.h; do
+ install -Dm644 "$header" "$pkgdir/usr/include/$header"
+ done
+}