33 lines
841 B
Bash
33 lines
841 B
Bash
|
# Template file for 'libb64'
|
||
|
pkgname=libb64
|
||
|
version=1.2.1
|
||
|
revision=1
|
||
|
short_desc="Library for fast encoding/decoding data into and from Base64 format"
|
||
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||
|
license="Public Domain"
|
||
|
homepage="https://libb64.sourceforge.net/"
|
||
|
distfiles="${SOURCEFORGE_SITE}/libb64/libb64-${version}.zip"
|
||
|
checksum=20106f0ba95cfd9c35a13c71206643e3fb3e46512df3e2efb2fdbf87116314b2
|
||
|
CFLAGS=-fPIC
|
||
|
|
||
|
do_build() {
|
||
|
make -C src
|
||
|
${CC} ${LDFLAGS} ${CFLAGS} \
|
||
|
-shared -Wl,-soname,libb64.so.0 \
|
||
|
src/*.o -o libb64.so.0
|
||
|
}
|
||
|
|
||
|
do_install() {
|
||
|
vinstall libb64.so.0 644 usr/lib
|
||
|
}
|
||
|
|
||
|
libb64-devel_package() {
|
||
|
depends="${sourcepkg}>=${version}_${revision}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
ln -sf libb64.so.0 "${PKGDESTDIR}/usr/lib/libb64.so"
|
||
|
vcopy include usr
|
||
|
vinstall src/libb64.a 644 usr/lib
|
||
|
}
|
||
|
}
|