updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / xaralx / PKGBUILD
blobe126fc35ccd61d107e04d4a79c847b0d73bc2dda
1 # Contributor: Woody Gilk <woody@archlinux.org>
2 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
3 pkgname=xaralx
4 pkgver=0.7r1785
5 pkgrel=5
6 pkgdesc="An advanced vector graphics program, development release"
7 arch=('i686' 'x86_64')
8 url="http://www.xaraxtreme.org/"
9 license=('GPL')
10 depends=('wxgtk')
11 makedepends=('pkgconfig' 'zip')
12 optdepends=('imagemagick: needed for some conversions')
13 install=${pkgname}.install
14 source=(http://downloads2.xara.com/opensource/XaraLX-$pkgver.tar.bz2 \
15  xaralx-wxGTK-2.8.patch.bz2)
17 build() {
18   export LANG=C
19   cd $srcdir/XaraLX-$pkgver
20   sed -i "/info_ptr->trans/s:trans:trans_alpha:" wxOil/outptpng.cpp || return 1
22   patch -p1 < $srcdir/xaralx-wxGTK-2.8.patch || return 1
23   ./configure --prefix=/usr --enable-filters  \
24     --enable-xarlib --disable-svnversion --with-gnu-ld || return 1
25   make || return 1
26   make DESTDIR=$pkgdir install || return 1
28   # Desktop compatibility
29   install -D -m644 $pkgname.png \
30     $pkgdir/usr/share/pixmaps/$pkgname.png || return 1
31   install -D -m644 $pkgname.desktop \
32     $pkgdir/usr/share/applications/$pkgname.desktop || return 1
33   install -D -m644 Mime/$pkgname.xml \
34     $pkgdir/usr/share/mime/packages/$pkgname.xml || return 1
36   cd $pkgdir/usr/bin && ln -s XaraLX $pkgname
39 md5sums=('5f2fd1f188f2c01c0b06e69d0fba2f4f'
40          '6085d2ad262c66f3a9999f2c2840c1eb')