updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / lib32-idnkit / PKGBUILD
blob64d5a401e22ff833ee5ddfcca2fdf842bd95195b
1 # Maintainer: Bill Fraser <wfraser@codewise.org>
3 _pkgbasename=idnkit
4 pkgname=lib32-idnkit
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc='Provides functionalities about Internationalized Domain Name processing'
8 arch=('x86_64')
9 url='http://www.nic.ad.jp/ja/idn/idnkit/download/'
10 license=('custom:BSD')
11 options=('!makeflags' '!libtool')
12 source=("http://www.nic.ad.jp/ja/idn/idnkit/download/sources/idnkit-${pkgver}-src.tar.gz")
13 sha1sums=('7d843ffcf9843b7af02079e5a160520f28c75048')
14 depends=($_pkgbasename)
16 build() {
17         export CC="gcc -m32"
18         export LD="ld -m32"
20         cd "${srcdir}/idnkit-${pkgver}-src"
21         ./configure \
22                 --prefix=/usr \
23                 --libdir=/usr/lib32 \
24                 --sysconfdir=/etc \
25                 --localstatedir=/var \
26                 --mandir=/usr/share/man \
27                 --enable-static=no
28         make
31 package() {
32         cd "${srcdir}/idnkit-${pkgver}-src"
33         make DESTDIR="${pkgdir}" install
34         rm -r ${pkgdir}/etc
35         rm -r ${pkgdir}/usr/{bin,include,share}
36         mkdir -p ${pkgdir}/usr/share/licenses
37         ln -s ${_pkgbasename} "${pkgdir}/usr/share/licenses/${pkgname}"