milis/talimatname/genel/l/libb64/talimat

31 lines
787 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Base64 Encoding/Decoding Routines
2017-08-06 03:25:25 +02:00
# URL: http://libb64.sourceforge.net
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler:
2017-08-06 03:25:25 +02:00
2017-10-28 14:10:23 +02:00
isim=libb64
surum=1.2.1
devir=1
kaynak=(https://downloads.sourceforge.net/${isim}/${isim}-${surum}.zip
2017-08-06 03:25:25 +02:00
https://sources.debian.net/data/main/libb/libb64/1.2-3/debian/patches/bufsiz-as-buffer-size.diff)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2017-08-06 03:25:25 +02:00
patch -p1 -i "$SRC"/bufsiz-as-buffer-size.diff
cd src
export CFLAGS="${CFLAGS} -fPIC"
make
2017-10-28 14:10:23 +02:00
export CFLAGS="${CFLAGS} -shared -Wl,-soname,${isim}.so.0"
gcc ${LDFLAGS} ${CFLAGS} *.o -o ${isim}.so.0
2017-08-06 03:25:25 +02:00
install -d "${PKG}/usr/lib"
install libb64.so.0 "${PKG}/usr/lib"
ln -sf /usr/lib/libb64.so.0 "${PKG}/usr/lib/libb64.so"
cd ..
cp -r include "${PKG}/usr"
2017-10-28 14:10:23 +02:00
install -Dm644 LICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE
2017-08-06 03:25:25 +02:00
}