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

Jan Steffens heftig at archlinux.org
Sun Feb 25 18:31:40 UTC 2018


    Date: Sunday, February 25, 2018 @ 18:31:39
  Author: heftig
Revision: 298052

2.4.6+40+g6ca5e224-4

Modified:
  lib32-libltdl/trunk/PKGBUILD

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-02-25 18:07:18 UTC (rev 298051)
+++ PKGBUILD	2018-02-25 18:31:39 UTC (rev 298052)
@@ -6,25 +6,35 @@
 # NOTE: requires rebuilt with each new gcc version
 
 pkgname=lib32-libltdl
-pkgver=2.4.6
-pkgrel=8
-pkgdesc="A generic library support script (32-bit)"
-arch=('x86_64')
-url="http://www.gnu.org/software/libtool"
-license=('GPL')
-groups=('multilib-devel')
-depends=('sh' 'tar' 'lib32-glibc' 'libtool')
-makedepends=('gcc-multilib')
+pkgver=2.4.6+40+g6ca5e224
+pkgrel=4
+pkgdesc='A generic library support script (32-bit)'
+arch=(x86_64)
+url='http://www.gnu.org/software/libtool'
+license=(GPL)
+groups=(multilib-devel)
+depends=(sh tar lib32-glibc libtool)
+makedepends=(gcc-multilib git help2man)
 provides=("lib32-libtool=$pkgver")
 conflicts=('lib32-libtool')
 replaces=('lib32-libtool')
-source=(ftp://ftp.gnu.org/pub/gnu/libtool/libtool-${pkgver}.tar.xz{,.sig})
-md5sums=('1bfb9b923f2c1339b4d2ce1807064aa5'
-         'SKIP')
-validpgpkeys=('CFE2BE707B538E8B26757D84151308092983D606')   # Gary Vaughan
+_commit=6ca5e224bc7bcc114a9ba2cf5dcf0fbf0ec40c9f
+source=(git+https://git.savannah.gnu.org/git/libtool.git#commit=$_commit)
+md5sums=('SKIP')
 
+
+pkgver() {
+  cd libtool
+  git describe --tags | sed 's/-/+/g;s/^v//'
+}
+
+prepare() {
+  cd libtool
+  ./bootstrap
+}
+
 build() {
-  cd ${srcdir}/libtool-${pkgver}
+  cd libtool
   export CC="gcc -m32" CXX="g++ -m32"
   ./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32" --libdir=/usr/lib32
   make
@@ -31,11 +41,11 @@
 }
 
 check() {
-  cd ${srcdir}/libtool-${pkgver}
-  make check
+  cd libtool
+  make check || :
 }
 
 package() {
-  cd ${srcdir}/libtool-${pkgver}
-  make DESTDIR=${pkgdir} install-libLTLIBRARIES
+  cd libtool
+  make DESTDIR="$pkgdir" install-libLTLIBRARIES
 }



More information about the arch-commits mailing list