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
12 pkgdesc="A bash daemon that executes the Windows proxy 'Ultrasurf' like a unix daemon"
14 url="http://ghostship.sf.net/"
17 depends=('tightvnc' 'wget')
19 optdepends=('wine' 'bin32-wine')
21 conflicts=('ghostship-svn' 'ghostship-test')
23 backup=('/etc/ghostship/ghostship.conf')
26 source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz)
28 md5sums=('4ff7dbbf7082b8c6d5806a843b125029')
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/"
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/"
43 # Remove other distros specific stuff
44 rm "$pkgdir/var/lib/ghostship/status/ubuntu.html"
48 # vim:set ts=2 sw=2 et: