updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / tork / PKGBUILD
blob850f2644a73723ac22c97e146f0b463b77b4857a
1 # Maintainer: Felix Yan <felixonmars@gmail.com>
2 # Contributor: Darwin Bautista <djclue917@gmail.com>
3 # Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
5 libname=tor
6 pkgname=${libname}k
7 pkgver=0.33
8 pkgrel=1
9 pkgdesc="An anonymity manager for KDE"
10 arch=("any")
11 url="http://www.anonymityanywhere.com/${pkgname}/"
12 license=("GPL")
13 depends=("geoip>=1.4.3" "kdelibs3" "${libname}" "torsocks")
14 backup=("etc/${pkgname}-tsocks.conf")
15 options=("!emptydirs" "!libtool")
16 install=${pkgname}.install
18 source=(
19     http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
20           fix_net_port.patch
22 sha1sums=(
23     'cf94b9579cf24254fcb344f579088a241bbd4028'
24     '70c450031bf5e603801451fc016e5cfc22cfd19c'
27 build() {
28         cd ${srcdir}/${pkgname}-${pkgver}
29         
30         # Source the KDE and QT profiles
31         source /etc/profile.d/kde3.sh
32         source /etc/profile.d/qt3.sh
34         msg "Applying patch(es) ..."
35         
36         patch -Np1 -i ../fix_net_port.patch
38         # Build
39         msg "Compiling tork ..."
40         ./configure --prefix=/opt/kde --mandir=/opt/kde/share/man \
41         --sysconfdir=/etc --with-external-geoip --without-arts
43         # Fix --as-needed and --hash-style=gnu options not recognized error
44         find . -name Makefile -exec sed -i "s/-Wl,--as-needed//g" {} \;
45         find . -name Makefile -exec sed -i "s/-Wl,--hash-style=gnu//g" {} \;
47         make
48         make DESTDIR=${pkgdir} install
51 # vim:set ts=2 sw=2 et: