blob: 0031cdae6cf3c49e61332f6d5d931d00358dc72a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $Id: PKGBUILD 63988 2012-02-08 18:51:39Z pschmitz $
# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
_pkgbasename=libasyncns
pkgname=lib32-$_pkgbasename
pkgver=0.8
pkgrel=6
pkgdesc="A C library for Linux/Unix for executing name service queries asynchronously (32-bit)"
arch=(x86_64)
url="http://0pointer.de/lennart/projects/libasyncns"
license=('LGPL')
options=('!libtool')
depends=('lib32-glibc' $_pkgbasename)
makedepends=('gcc-multilib')
source=(http://0pointer.de/lennart/projects/libasyncns/${_pkgbasename}-${pkgver}.tar.gz)
md5sums=('1f553d6ce1ad255bc83b3d8e9384f515')
build() {
cd ${srcdir}/libasyncns-${pkgver}
export CC="gcc -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
# Fix libdir
sed -i '/^libdir=/s:/lib:/lib32:' *.pc.in
./configure --prefix=/usr --disable-lynx --libdir=/usr/lib32
make
}
package() {
cd ${srcdir}/libasyncns-${pkgver}
make DESTDIR=${pkgdir} install
rm -rf "${pkgdir}"/usr/{include,share}
}
|