milis/talimatname/genel/a/afpfs-ng/talimat

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Apple Dosyalama Protokol (AFP) kütüphanesi.
2017-06-29 13:16:06 +02:00
# URL: http://alexthepuffin.googlepages.com/
2017-12-22 20:17:22 +01:00
# Paketçi: yakar(aydin@komutan.org)
2017-10-27 20:46:27 +02:00
# Gerekler: fuse libgcrypt
2017-12-22 20:17:22 +01:00
# Grup: kütüphane
2017-06-29 13:16:06 +02:00
2017-10-28 14:10:23 +02:00
isim=afpfs-ng
surum=0.8.1
devir=1
2017-12-22 20:17:22 +01:00
kaynak=(http://downloads.sourceforge.net/sourceforge/$isim/$isim-$surum.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
)
2017-06-29 13:16:06 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd "$SRC/$isim-$surum"
2017-06-29 13:16:06 +02:00
# apply patches
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
# install headers
cd include
for header in afpfs-ng/*.h; do
install -Dm644 "$header" "$PKG/usr/include/$header"
done
}