PKGBUILDs/community/kydpdict/PKGBUILD

37 lines
1.3 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
pkgname=kydpdict
pkgver=0.9.4
pkgrel=2
pkgdesc="A front-end to YDP Collins Dictionary"
arch=('i686' 'x86_64')
url="http://members.elysium.pl/ytm/html/kydpdict.html"
license=('GPL')
depends=('qt')
install=(kydpdict.install)
source=(http://members.elysium.pl/ytm/src/$pkgname-$pkgver.tar.bz2 \
$pkgname.png $pkgname.desktop)
md5sums=('b7ba99c4925d642b9407c2628e5b16b3'
'dee4f28a7c681292226d06ab97b39e3e'
'e42aed4dde1a7f203586220d04737237')
build() {
. /etc/profile.d/qt.sh
cd $startdir/src/$pkgname-$pkgver
tar zxf contrib/kydpdict-0.9.3-oxpwnsnd.tar.gz
patch -Np1 -i kydpdict-0.9.3-oxpwnsnd/kydpdict-0.9.3-pwnoxsnd.patch || return 1
./configure --prefix=/usr
make || return 1
make DESTDIR=$startdir/pkg install
install -D -m 644 $startdir/src/$pkgname.png $startdir/pkg/usr/share/pixmaps/$pkgname.png
install -D -m 644 $startdir/src/$pkgname.desktop $startdir/pkg/usr/share/applications/$pkgname.desktop
install -D -m 644 contrib/$pkgname.1 $startdir/pkg/usr/share/man/man1/$pkgname.1
install -D -m 644 contrib/$pkgname.pl.1 $startdir/pkg/usr/share/man/pl/man1/$pkgname.1
gcc -O2 -Wall kydpdict-0.9.3-oxpwnsnd/exwaves.c -o $startdir/pkg/usr/bin/exwaves
}