summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45807f959489ac9eec47e5977275813791aeb60a (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
43
44
45
# Maintainer: zaps166 <spaz16@wp.pl>

pkgname=kydpdict
pkgver=0.9.5
pkgrel=5
pkgdesc="A front-end to YDP Collins Dictionary"
arch=('i686' 'x86_64')
url="http://fossies.org/linux/privat/old/kydpdict-0.9.5.tar.gz/kydpdict-0.9.5/contrib/kydpdict.pl.1"
license=('GPL')
depends=('qt3')
makedepends=('gcc')
install=kydpdict.install
source=(http://fossies.org/linux/privat/old/$pkgname-$pkgver.tar.bz2
        $pkgname.png
        $pkgname.desktop)
md5sums=('bf8aa06d4a3bbe401d7972e01c07609d'
         'dee4f28a7c681292226d06ab97b39e3e'
         'e42aed4dde1a7f203586220d04737237')

build() {
    cd ${srcdir}/${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

    export LUPDATE=/usr/lib/qt3/bin/lupdate
    export LRELEASE=/usr/lib/qt3/bin/lrelease
    ./configure --prefix=/usr --with-qt-dir=/usr/lib/qt3 --with-qt-includes=/usr/include/qt3
    sed 's/QT_LIB=-lqt-mt/QT_LIB=-lqt-mt -lz/' src/Makefile > Makefile_new
    mv Makefile_new src/Makefile
    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
}