updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / kydpdict / PKGBUILD
blob5e8a7f299f156c140931c7cf6c473e9920f29041
1 # $Id: PKGBUILD 58591 2011-11-16 14:43:18Z andrea $
2 # Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
4 pkgname=kydpdict
5 pkgver=0.9.5
6 pkgrel=1
7 pkgdesc="A front-end to YDP Collins Dictionary"
8 arch=('i686' 'x86_64')
9 url="http://ytm.bossstation.dnsalias.org/html/kydpdict.html"
10 license=('GPL')
11 depends=('qt3')
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')
19 build() {
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
28   make
31 package() {
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