updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / lib32-librsvg / PKGBUILD
blob462141e96361543c9977ea7995cce2bc5d9707da
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _name=librsvg
4 pkgname=lib32-$_name
5 pkgver=2.34.2
6 pkgrel=1
7 pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
8 arch=('x86_64')
9 url="http://librsvg.sourceforge.net/"
10 license=('LGPL')
11 depends=("$_name" 'lib32-gtk2' 'lib32-libcroco')
12 makedepends=('gcc-multilib' 'lib32-libgsf' 'lib32-gtk3')
13 options=('!libtool' '!emptydirs')
14 source=("http://ftp.gnome.org/pub/gnome/sources/$_name/${pkgver%.*}/$_name-$pkgver.tar.bz2")
15 md5sums=('4a7eda78019cb89d4e7ae7c841480399')
17 build() {
18   cd "$srcdir/$_name-$pkgver"
20   # lib32 flags
21   export CC="gcc -m32"
22   export CXX="g++ -m32"
23   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
25   ./configure --prefix=/usr \
26               --libdir=/usr/lib32 \
27               --enable-static=no \
28               --with-croco \
29               --with-svgz
30   make
33 package() {
34   cd "$srcdir/$_name-$pkgver"
36   make DESTDIR="$pkgdir/" install
38   # remove unneeded stuff
39   rm -fr ${pkgdir}/{usr/{bin,include,share},etc}