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

Dave Reisner dreisner at archlinux.org
Wed Oct 19 11:35:35 EDT 2011


    Date: Wednesday, October 19, 2011 @ 11:35:35
  Author: dreisner
Revision: 140803

upgpkg: pth 2.0.7-4

- add check function
- fix awk provider (and add as dep)
- disable static build

Modified:
  pth/trunk/PKGBUILD

----------+
 PKGBUILD |   39 ++++++++++++++++++++++++++++++---------
 1 file changed, 30 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-19 14:21:48 UTC (rev 140802)
+++ PKGBUILD	2011-10-19 15:35:35 UTC (rev 140803)
@@ -3,20 +3,41 @@
 
 pkgname=pth
 pkgver=2.0.7
-pkgrel=3
+pkgrel=4
 pkgdesc="The GNU Portable Threads."
 arch=('i686' 'x86_64')
 url="http://www.gnu.org/software/pth/"
 license=('LGPL')
-depends=('glibc')
+depends=('glibc' 'awk')
 options=('!libtool' '!makeflags')
-source=(ftp://ftp.gnu.org/gnu/pth/${pkgname}-${pkgver}.tar.gz)
-md5sums=('9cb4a25331a4c4db866a31cbe507c793')
+source=(ftp://ftp.gnu.org/gnu/pth/$pkgname-$pkgver.tar.gz{,.sig})
+sha1sums=('9a71915c89ff2414de69fe104ae1016d513afeee'
+          '8cb16dffbf15ba92bda8d08918eaf5995642fc38')
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  ./configure --prefix=/usr --sysconfdir=/etc \
-              --localstatedir=/var --mandir=/usr/share/man || return 1
-  make || return 1
-  make DESTDIR=${pkgdir} install || return 1
+  cd "$srcdir/$pkgname-$pkgver"
+
+  ./configure --prefix=/usr \
+              --sysconfdir=/etc \
+              --localstatedir=/var \
+              --mandir=/usr/share/man \
+              --disable-static \
+              --enable-shared \
+              --with-pic
+
+  sed -i "s|awk=''|awk=/bin/awk|g" shtool # "Cannot find a reasonable Awk"
+
+  make
 }
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  make DESTDIR=${pkgdir} install
+}



More information about the arch-commits mailing list