1 # $Id: PKGBUILD 58591 2011-11-16 14:43:18Z andrea $
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
7 pkgdesc="A front-end to YDP Collins Dictionary"
9 url="http://ytm.bossstation.dnsalias.org/html/kydpdict.html"
12 install=kydpdict.install
13 source=(http://ytm.bossstation.dnsalias.org/src/$pkgname-$pkgver.tar.bz2 \
14 $pkgname.png $pkgname.desktop)
15 md5sums=('bf8aa06d4a3bbe401d7972e01c07609d'
16 'dee4f28a7c681292226d06ab97b39e3e'
17 'e42aed4dde1a7f203586220d04737237')
20 cd ${srcdir}/${pkgname}-${pkgver}
22 . /etc/profile.d/qt3.sh
24 tar zxf contrib/kydpdict-0.9.3-oxpwnsnd.tar.gz
25 patch -Np1 -i kydpdict-0.9.3-oxpwnsnd/kydpdict-0.9.3-pwnoxsnd.patch
27 ./configure --prefix=/usr
32 cd $srcdir/$pkgname-$pkgver
34 make DESTDIR="$pkgdir" install
36 install -D -m 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
37 install -D -m 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
38 install -D -m 644 contrib/$pkgname.1 $pkgdir/usr/share/man/man1/$pkgname.1
39 install -D -m 644 contrib/$pkgname.pl.1 $pkgdir/usr/share/man/pl/man1/$pkgname.1
41 gcc -O2 -Wall kydpdict-0.9.3-oxpwnsnd/exwaves.c -o $pkgdir/usr/bin/exwaves