[arch-commits] Commit in libb64 (5 files)

Massimiliano Torromeo mtorromeo at archlinux.org
Sun Feb 26 00:36:21 UTC 2017


    Date: Sunday, February 26, 2017 @ 00:36:20
  Author: mtorromeo
Revision: 213825

archrelease: copy trunk to community-i686, community-x86_64

Added:
  libb64/repos/
  libb64/repos/community-i686/
  libb64/repos/community-i686/PKGBUILD
    (from rev 213824, libb64/trunk/PKGBUILD)
  libb64/repos/community-x86_64/
  libb64/repos/community-x86_64/PKGBUILD
    (from rev 213824, libb64/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   34 ++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)

Copied: libb64/repos/community-i686/PKGBUILD (from rev 213824, libb64/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2017-02-26 00:36:20 UTC (rev 213825)
@@ -0,0 +1,34 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=libb64
+pkgver=1.2.1
+pkgrel=1
+pkgdesc='Base64 Encoding/Decoding Routines'
+url='http://libb64.sourceforge.net/'
+depends=('glibc')
+arch=('i686' 'x86_64')
+license=('custom:Public Domain')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.zip")
+md5sums=('8a5dc72eb7e32f074605260bc127c764')
+
+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
+}

Copied: libb64/repos/community-x86_64/PKGBUILD (from rev 213824, libb64/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2017-02-26 00:36:20 UTC (rev 213825)
@@ -0,0 +1,34 @@
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=libb64
+pkgver=1.2.1
+pkgrel=1
+pkgdesc='Base64 Encoding/Decoding Routines'
+url='http://libb64.sourceforge.net/'
+depends=('glibc')
+arch=('i686' 'x86_64')
+license=('custom:Public Domain')
+source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.zip")
+md5sums=('8a5dc72eb7e32f074605260bc127c764')
+
+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