mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
added community/libb64
This commit is contained in:
parent
42ea75ff37
commit
bce752bc7d
1 changed files with 45 additions and 0 deletions
45
community/libb64/PKGBUILD
Normal file
45
community/libb64/PKGBUILD
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
|
||||
# Contributor: Andrea Scarpino <andrea@archlinux.org>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - add -fsigned-char to CFLAGS
|
||||
|
||||
pkgname=libb64
|
||||
pkgver=1.2.1
|
||||
pkgrel=4.1
|
||||
pkgdesc='Base64 Encoding/Decoding Routines'
|
||||
url='http://libb64.sourceforge.net/'
|
||||
depends=('glibc')
|
||||
arch=('x86_64')
|
||||
license=('custom:Public Domain')
|
||||
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.zip"
|
||||
"https://sources.debian.net/data/main/libb/libb64/1.2-3/debian/patches/bufsiz-as-buffer-size.diff")
|
||||
sha256sums=('20106f0ba95cfd9c35a13c71206643e3fb3e46512df3e2efb2fdbf87116314b2'
|
||||
'0a8a978e94a924b4f62795de251aa1a5ceb53a1024ea60193d7f3e5a5794fa20')
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
patch -p1 -i "$srcdir"/bufsiz-as-buffer-size.diff
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}/src
|
||||
export CFLAGS="${CFLAGS} -fPIC -fsigned-char"
|
||||
make
|
||||
|
||||
export CFLAGS="${CFLAGS} -shared -Wl,-soname,${pkgname}.so.0"
|
||||
gcc ${LDFLAGS} ${CFLAGS} *.o -o ${pkgname}.so.0
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
install -d "${pkgdir}/usr/lib"
|
||||
install src/libb64.so.0 "${pkgdir}/usr/lib"
|
||||
ln -sf /usr/lib/libb64.so.0 "${pkgdir}/usr/lib/libb64.so"
|
||||
|
||||
cp -r include "${pkgdir}/usr"
|
||||
|
||||
install -Dm644 LICENSE \
|
||||
"${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
}
|
Loading…
Reference in a new issue