updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / west-chamber-svn / PKGBUILD
blobf3c70ca42f116709bacc6ea6e052a25ce519fca0
1 # Contributor: osily <ly50247@gmail.com>
3 pkgname=west-chamber-svn
4 pkgver=24
5 pkgrel=1
6 pkgdesc="a project whose name came from the Romance_of_the_West_Chamber"
7 arch=(i686 x86_64)
8 url="http://code.google.com/p/scholarzhang"
9 license=('GPL')
10 groups=()
11 depends=(iptables kernel26-headers)
12 makedepends=('subversion')
14 _svntrunk=http://scholarzhang.googlecode.com/svn/trunk
15 _svnmod=west-chamber
16 install=west-chamber-svn.install
17 build() {
18   svn co ${_svntrunk} ${_svnmod}
19   cd "${srcdir}/${_svnmod}/${_svnmod}"
21   msg "start autogen.sh"
22   ./autogen.sh
24   msg "start configure"
25   ./configure --prefix=/usr \
26               --libexecdir=/usr/lib/iptables \
27               --sysconfdir=/etc \
28               --with-xtlibdir=/usr/lib/iptables
30   msg "start make"
31   make || return 1
34 package()
36   cd "$srcdir/${_svnmod}/${_svnmod}"
38   msg "start make install"
39   make DESTDIR="$pkgdir" install || return 1
41   mkdir -p $pkgdir/usr/share/west-chamber/examples || return 1
42   install -m644 examples/{CHINA,GOOGLE,NOCLIP,YOUTUBE} $pkgdir/usr/share/west-chamber/examples || return 1
45 # vim:set ts=2 sw=2 et: