milis/talimatname/genel/l/libb64/talimat

32 lines
886 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Base64 kodlu bir format içine ve içinden hızlı kodlama/kod çözme için bir ANSI C rutini kütüphanesidir.
# URL: http://libb64.sourceforge.net
# Paketçi: milisarge
# Gerekler:
# Grup: kütüphane
isim=libb64
surum=1.2.1
devir=1
kaynak=(https://downloads.sourceforge.net/${isim}/${isim}-${surum}.zip
https://sources.debian.net/data/main/libb/libb64/1.2-3/debian/patches/bufsiz-as-buffer-size.diff)
derle() {
cd $isim-$surum
patch -p1 -i "$SRC"/bufsiz-as-buffer-size.diff
cd src
export CFLAGS="${CFLAGS} -fPIC"
make
export CFLAGS="${CFLAGS} -shared -Wl,-soname,${isim}.so.0"
gcc ${LDFLAGS} ${CFLAGS} *.o -o ${isim}.so.0
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"
install -Dm644 LICENSE "${PKG}"/usr/share/licenses/${isim}/LICENSE
}