Date: Wednesday, May 18, 2022 @ 17:21:24 Author: heftig Revision: 1209117
0.8+r3+g68cd5af-1 Modified: lib32-libasyncns/trunk/PKGBUILD ----------+ PKGBUILD | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-05-18 17:17:09 UTC (rev 1209116) +++ PKGBUILD 2022-05-18 17:21:24 UTC (rev 1209117) @@ -1,30 +1,31 @@ -# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> +# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> # Contributor: Corrado Primier <[email protected]> # Contributor: Eric Belanger <[email protected]> # Contributor: William Rea <[email protected]> # Contributor: Daniel J Griffiths <[email protected]> -_pkgbasename=libasyncns -pkgname=lib32-$_pkgbasename -pkgver=0.8+3+g68cd5af -pkgrel=2 +pkgname=lib32-libasyncns +pkgver=0.8+r3+g68cd5af +pkgrel=1 +epoch=1 pkgdesc="A C library for executing name service queries asynchronously" +url="https://0pointer.de/lennart/projects/libasyncns/" arch=(x86_64) -url="http://0pointer.de/lennart/projects/libasyncns" license=(LGPL) -depends=(lib32-glibc $_pkgbasename) -makedepends=(gcc-multilib git lynx) -_commit=68cd5aff1467638c086f1bedcc750e34917168e4 +depends=(lib32-glibc libasyncns) +makedepends=(git lynx) +options=(debug) +_commit=68cd5aff1467638c086f1bedcc750e34917168e4 # master source=("git://git.0pointer.de/libasyncns.git#commit=$_commit") md5sums=('SKIP') pkgver() { - cd $_pkgbasename - git describe | sed 's/^v//;s/-/+/g' + cd libasyncns + git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g' } prepare() { - cd $_pkgbasename + cd libasyncns # Fix libdir sed -i '/^libdir=/s:/lib:/lib32:' *.pc.in @@ -33,8 +34,8 @@ } build() { - cd $_pkgbasename - export CC="gcc -m32" PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + cd libasyncns + export CC="gcc -m32" PKG_CONFIG="i686-pc-linux-gnu-pkg-config" ./configure --prefix=/usr --libdir=/usr/lib32 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make @@ -41,7 +42,7 @@ } package() { - cd $_pkgbasename + cd libasyncns make DESTDIR="$pkgdir" install rm -r "$pkgdir"/usr/{include,share} }
