updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ghostship / PKGBUILD
blob96d7723ef2f99e3b8067d4d6f4a7b40f23ed42f7
1 # Contributor: thoughtcrime
3 # NOTE: if you use wine inside a arch32 chroot, 
4 # install this package inside arch32 and run
5 # the following in arch64:
6 # ln -s /opt/arch32/usr/share/ghostship/ghostship_chroot /etc/rc.d/ghostship
9 pkgname=ghostship
10 pkgver=0.6
11 pkgrel=1
12 pkgdesc="A bash daemon that executes the Windows proxy 'Ultrasurf' like a unix daemon"
13 arch=(i686 x86_64)
14 url="http://ghostship.sf.net/"
15 license=('GPL')
16 groups=()
17 depends=('tightvnc' 'wget')
18 makedepends=()
19 optdepends=('wine' 'bin32-wine')
20 provides=()
21 conflicts=('ghostship-svn' 'ghostship-test')
22 replaces=()
23 backup=('/etc/ghostship/ghostship.conf')
24 options=(!zipman)
25 install=
26 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz)
27 noextract=()
28 md5sums=('4ff7dbbf7082b8c6d5806a843b125029')
32 build() {
33         cp $srcdir/$pkgname-$pkgver/source/* "$pkgdir" -r
34         mkdir "$pkgdir/etc/rc.d/" -p
35         cp "$srcdir/$pkgname-$pkgver/initscripts/archlinux/ghostship" "$pkgdir/etc/rc.d/"
36         
37         # Copy the init script for chroot users
38         if [ "$CARCH" = "i686" ]; then
39                 install -d "$pkgdir/usr/share/ghostship/"
40                 cp "$srcdir/$pkgname-$pkgver/initscripts/archlinux/ghostship_chroot" "$pkgdir/usr/share/ghostship/"
41         fi
42         
43         # Remove other distros specific stuff
44         rm "$pkgdir/var/lib/ghostship/status/ubuntu.html"
45         
48 # vim:set ts=2 sw=2 et: