1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
3 # Contributor: Eric Belanger <belanger@astro.umontreal.ca>
4 # Contributor: William Rea <sillywilly@gmail.com>
5 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
7 pkgname=lib32-libasyncns
11 pkgdesc="A C library for executing name service queries asynchronously (32-bit)"
12 url="https://0pointer.net/lennart/projects/libasyncns/"
15 depends=(lib32-glibc libasyncns)
16 makedepends=(git lynx)
18 _commit=68cd5aff1467638c086f1bedcc750e34917168e4 # master
19 source=("git+https://git.0pointer.net/clone/libasyncns.git#commit=$_commit")
24 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
31 sed -i '/^libdir=/s:/lib:/lib32:' *.pc.in
33 NOCONFIGURE=1 ./bootstrap.sh
41 export PKG_CONFIG=i686-pc-linux-gnu-pkg-config
43 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
46 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
52 make DESTDIR="$pkgdir" install
53 rm -r "$pkgdir"/usr/{include,share}
56 # vim:set sw=2 sts=-1 et: