updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-liboil / PKGBUILD
blob574739f90056dd9a1ece15c50a015de9b9dd97d5
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>
6 _pkg=liboil
7 pkgname=lib32-$_pkg
8 pkgver=0.3.17
9 pkgrel=3
10 pkgdesc="Library of simple functions that are optimized for various CPUs. Multilib."
11 arch=('x86_64')
12 license=('custom')
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')
20 build() {
21   cd "$srcdir/$_pkg-$pkgver"
23   export CC='gcc -m32'
24   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
25   unset CFLAGS
27   ./configure --prefix=/usr \
28               --libdir=/usr/lib32 \
29               --enable-static=no \
30               --disable-gtk-doc \
31               --build=i686-unknown-linux-gnu
33   # Disable doc and samples
34   sed -i "s|\(SUBDIRS = liboil\).*|\1|" Makefile
36   make
39 package() {
40   cd "$srcdir/$_pkg-$pkgver"
42   make DESTDIR="$pkgdir/" install
44   # Remove headers
45   rm -rf "$pkgdir/usr/include"
47   # license
48   install -d "$pkgdir/usr/share/licenses/$pkgname"
49   ln -s /usr/share/licenses/$_pkg/COPYING \
50     "$pkgdir/usr/share/licenses/$pkgname"