updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / afpfs-ng / PKGBUILD
blob1e93bfaf6a1a0de0e78350ff61d76303d75eda70
1 # Contributor: slubman <slubman.dndd@laposte.net>
2 # Contributor: BlackEagle <ike DOT devolder AT gmail DOT com>
4 pkgname=afpfs-ng
5 pkgver=0.8.1
6 pkgrel=2
7 pkgdesc="A client for the Apple Filing Protocol (AFP)"
8 license=('GPL')
9 depends=('gmp' 'fuse' 'libgcrypt')
10 arch=('i686' 'x86_64')
11 source=(
12         "http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
13         'fix_afpfs-ng_includes.patch'
14         '01-gcrypt.patch'
15         '02-pointer.patch'
16         '10-fix-errno.patch'
18 sha256sums=(
19         '688560de1cde57ab8d9e0ef7dc6436dbf0267fe8884f9014e50ff92b297b01a8'
20         '627d94ab3c1cbc002b18839f514c6fa980b0a25dfc21e8761b389fcd39f32755'
21         '18dc77b064fc02c229e0cfa071a7e31cde6d0243671ebde2f561ebdf09dc38bb'
22         '8537b086c496e776be2a6757325717cb15dee6dcf2aedccebed6b4b2332d3dc1'
23         '0e1c0c0e3a9ff6e55ccbbbc1b4de630c874ff058e2ea94360b7d90e650d04811'
25 url="http://alexthepuffin.googlepages.com/"
27 build() {
28         cd ${pkgname}-${pkgver}
29         # apply patches
30         msg2 'fix_afpfs-ng_includes.patch'
31         patch -Np1 -i ${srcdir}/fix_afpfs-ng_includes.patch
32         msg2 '01-gcrypt.patch'
33         patch -Np1 -i ${srcdir}/01-gcrypt.patch
34         msg2 '02-pointer.patch'
35         patch -Np1 -i ${srcdir}/02-pointer.patch
36         msg2 '10-fix-errno.patch'
37         patch -Np1 -i ${srcdir}/10-fix-errno.patch
39         ./configure --prefix=/usr
40         make
43 package() {
44         cd ${pkgname}-${pkgver}
45         make DESTDIR=$pkgdir install
47         # install headers
48         cd include
49         for header in afpfs-ng/*.h; do
50                 install -Dm644 ${header} ${pkgdir}/usr/include/${header}
51         done