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

Jan Steffens heftig at archlinux.org
Wed Aug 10 22:59:01 UTC 2016


    Date: Wednesday, August 10, 2016 @ 22:59:01
  Author: heftig
Revision: 273584

0.8+3+g68cd5af-1

Modified:
  libasyncns/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++----------
 1 file changed, 23 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-10 22:54:48 UTC (rev 273583)
+++ PKGBUILD	2016-08-10 22:59:01 UTC (rev 273584)
@@ -6,23 +6,36 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=libasyncns
-pkgver=0.8
-pkgrel=5
+pkgver=0.8+3+g68cd5af
+pkgrel=1
 pkgdesc="A C library for executing name service queries asynchronously"
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
 url="http://0pointer.de/lennart/projects/libasyncns"
-license=('LGPL')
-depends=('glibc')
-source=("$url/$pkgname-$pkgver.tar.gz")
-md5sums=('1f553d6ce1ad255bc83b3d8e9384f515')
+license=(LGPL)
+depends=(glibc)
+makedepends=(git lynx)
+_commit=68cd5aff1467638c086f1bedcc750e34917168e4
+source=("git://git.0pointer.de/libasyncns.git#commit=$_commit")
+md5sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./bootstrap.sh
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./configure --prefix=/usr --disable-lynx
+  cd $pkgname
+  ./configure --prefix=/usr
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list