summaryrefslogtreecommitdiff
path: root/community/kydpdict/PKGBUILD
blob: 9ca4c5aa55a4f361e8cbc6d7bdc596d1b4360c9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $Id: PKGBUILD 23962 2010-08-18 13:20:20Z lcarlier $
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>

pkgname=kydpdict
pkgver=0.9.5
pkgrel=1
pkgdesc="A front-end to YDP Collins Dictionary"
arch=('i686' 'x86_64')
url="http://ytm.bossstation.dnsalias.org/html/kydpdict.html"
license=('GPL')
depends=('qt3')
install=(kydpdict.install)
source=(http://ytm.bossstation.dnsalias.org/src/$pkgname-$pkgver.tar.bz2 \
	$pkgname.png $pkgname.desktop)
md5sums=('bf8aa06d4a3bbe401d7972e01c07609d'
         'dee4f28a7c681292226d06ab97b39e3e'
         'e42aed4dde1a7f203586220d04737237')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}

  . /etc/profile.d/qt3.sh

  tar zxf contrib/kydpdict-0.9.3-oxpwnsnd.tar.gz
  patch -Np1 -i kydpdict-0.9.3-oxpwnsnd/kydpdict-0.9.3-pwnoxsnd.patch

  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver

  make DESTDIR="$pkgdir" install

  install -D -m 644 $srcdir/$pkgname.png $pkgdir/usr/share/pixmaps/$pkgname.png
  install -D -m 644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  install -D -m 644 contrib/$pkgname.1 $pkgdir/usr/share/man/man1/$pkgname.1
  install -D -m 644 contrib/$pkgname.pl.1 $pkgdir/usr/share/man/pl/man1/$pkgname.1

  gcc -O2 -Wall kydpdict-0.9.3-oxpwnsnd/exwaves.c -o $pkgdir/usr/bin/exwaves
}