1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: TryA <tryagainprod {at} gmail.com>
3 # Contributor: Jonathan Wiersma <arch aur at jonw dot org>
4 # Contributor: mightyjaym <jm.ambrosino@free.fr>
10 pkgdesc="Library of simple functions that are optimized for various CPUs. Multilib."
13 url="http://liboil.freedesktop.org/"
14 depends=("$_pkg" 'lib32-glibc')
15 makedepends=('gcc-multilib' 'lib32-glib2' 'pkgconfig')
16 options=('!libtool' '!makeflags')
17 source=("${url}download/$_pkg-$pkgver.tar.gz")
18 md5sums=('47dc734f82faeb2964d97771cfd2e701')
21 cd "$srcdir/$_pkg-$pkgver"
24 export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
27 ./configure --prefix=/usr \
31 --build=i686-unknown-linux-gnu
33 # Disable doc and samples
34 sed -i "s|\(SUBDIRS = liboil\).*|\1|" Makefile
40 cd "$srcdir/$_pkg-$pkgver"
42 make DESTDIR="$pkgdir/" install
45 rm -rf "$pkgdir/usr/include"
48 install -d "$pkgdir/usr/share/licenses/$pkgname"
49 ln -s /usr/share/licenses/$_pkg/COPYING \
50 "$pkgdir/usr/share/licenses/$pkgname"