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

Maxime Gauduin alucryd at archlinux.org
Wed Mar 11 15:30:24 UTC 2020


    Date: Wednesday, March 11, 2020 @ 15:30:24
  Author: alucryd
Revision: 594339

upgpkg: lib32-libtirpc 1.2.5-1

Modified:
  lib32-libtirpc/trunk/PKGBUILD

----------+
 PKGBUILD |   35 ++++++++++++++++++++++-------------
 1 file changed, 22 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-11 15:29:21 UTC (rev 594338)
+++ PKGBUILD	2020-03-11 15:30:24 UTC (rev 594339)
@@ -6,17 +6,26 @@
 # Contributor: josephgbr <rafael.f.f1 at gmail.com>
 
 pkgname=lib32-libtirpc
-pkgver=1.1.4
+pkgver=1.2.5
 pkgrel=1
 pkgdesc='Transport Independent RPC library (SunRPC replacement)'
-arch=('x86_64')
-url='http://libtirpc.sourceforge.net/'
-license=('BSD')
-depends=('lib32-krb5' 'libtirpc')
-makedepends=('git')
-source=("git://git.linux-nfs.org/projects/steved/libtirpc.git#tag=libtirpc-${pkgver//./-}")
-sha256sums=('SKIP')
+arch=(x86_64)
+url=http://libtirpc.sourceforge.net/
+license=(BSD)
+depends=(
+  lib32-krb5
+  libtirpc
+)
+makedepends=(git)
+source=(git://git.linux-nfs.org/projects/steved/libtirpc.git#tag=3642f9f6692bd8c0f4ac40561a27ef63502d80a4)
+sha256sums=(SKIP)
 
+pkgver() {
+  cd libtirpc
+
+  git describe --tags | sed 's/^libtirpc-//; s/-/./g'
+}
+
 prepare() {
   cd libtirpc
 
@@ -28,12 +37,12 @@
   cd libtirpc
 
   export CC='gcc -m32'
-  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
+  export PKG_CONFIG_PATH=/usr/lib32/pkgconfig
 
   ./configure \
-    --prefix='/usr' \
-    --libdir='/usr/lib32' \
-    --sysconfdir='/etc'
+    --prefix=/usr \
+    --libdir=/usr/lib32 \
+    --sysconfdir=/etc
   make
 }
 
@@ -44,7 +53,7 @@
   rm -rf "${pkgdir}"/{etc,usr/{include,share}}
 
   install -dm 755 "${pkgdir}"/usr/share/licenses
-  ln -s libtirpc "${pkgdir}"/usr/share/licenses/${pkgname}
+  ln -s libtirpc "${pkgdir}"/usr/share/licenses/lib32-libtirpc
 }
 
 # vim: ts=2 sw=2 et:



More information about the arch-commits mailing list