[arch-commits] Commit in lib32-libnsl/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Fri May 29 16:23:41 UTC 2020


    Date: Friday, May 29, 2020 @ 16:23:41
  Author: alucryd
Revision: 637167

upgpkg: lib32-libnsl 1.2.0-2

Modified:
  lib32-libnsl/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++++++++++---------------
 1 file changed, 25 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-29 16:13:31 UTC (rev 637166)
+++ PKGBUILD	2020-05-29 16:23:41 UTC (rev 637167)
@@ -3,24 +3,36 @@
 
 pkgname=lib32-libnsl
 pkgver=1.2.0
-pkgrel=1
+pkgrel=2
 pkgdesc='Public client interface library for NIS(YP) and NIS+'
-arch=('x86_64')
-url='https://github.com/thkukuk/libnsl'
-license=('LGPL2.1')
-depends=('lib32-libtirpc' 'libnsl')
-makedepends=('gcc-multilib')
-source=("libnsl-${pkgver}.tar.gz::https://github.com/thkukuk/libnsl/archive/v${pkgver}.tar.gz")
-sha256sums=('a5a28ef17c4ca23a005a729257c959620b09f8c7f99d0edbfe2eb6b06bafd3f8')
+arch=(x86_64)
+url=https://github.com/thkukuk/libnsl
+license=(LGPL2.1)
+depends=(
+  lib32-libtirpc
+  libnsl
+)
+makedepends=(git)
+source=(git+https://github.com/thkukuk/libnsl.git#tag=113d92f29bcb778fcaa9c2a18e48bce53729ea54)
+sha256sums=(SKIP)
 
+pkgver() {
+  cd libnsl
+
+  git describe --tags | sed 's/^v//'
+}
+
 prepare() {
-  cd libnsl-${pkgver}
+  cd libnsl
 
+  git cherry-pick -n a40f7c511765e2e0c4d710d45b7d8363c18c70f8
+  sed 's/0.19/0.20/g' -i po/Makefile.in.in
+
   ./autogen.sh
 }
 
 build() {
-  cd libnsl-${pkgver}
+  cd libnsl
 
   export CC='gcc -m32'
   export CXX='g++ -m32'
@@ -27,16 +39,14 @@
   export PKG_CONFIG_PATH='/usr/lib32/pkg-config'
 
   ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32' \
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
     --disable-static
   make
 }
 
 package() {
-  cd libnsl-${pkgver}
-
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="${pkgdir}" -C libnsl install
   rm -rf "${pkgdir}"/usr/include
 }
 



More information about the arch-commits mailing list