[arch-commits] Commit in libb64/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:55:05 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:55:05
  Author: felixonmars
Revision: 659908

archrelease: copy trunk to community-staging-x86_64

Added:
  libb64/repos/community-staging-x86_64/
  libb64/repos/community-staging-x86_64/PKGBUILD
    (from rev 659907, libb64/trunk/PKGBUILD)

----------+
 PKGBUILD |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

Copied: libb64/repos/community-staging-x86_64/PKGBUILD (from rev 659907, libb64/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:55:05 UTC (rev 659908)
@@ -0,0 +1,42 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=libb64
+pkgver=1.2.1
+pkgrel=4
+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"
+  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
+}



More information about the arch-commits mailing list