updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xchat-bttrw-svn / PKGBUILD
blobbf3a95b10211b0d6e78df30e18a757cfd53f3cae
1 # Contributor: Tomas Kopecny aka Georgo10 <georgo10@gmail.com>
2 # To create package use versionpkg instead makepkg !
3 # If you use makepkg, you will donwload 527 version.
5 pkgname=xchat-bttrw-svn
6 pkgver=527
7 pkgrel=1
8 pkgdesc="IRC gate to access czech web chat - Xchat.cz"
9 url="http://nomi.cz/projects.shtml?id=xchat-bttrw"
11 depends=('bash')
12 makedepends=('subversion' 'versionpkg')
13 conflicts=('xchat-bttrw')
14 replaces=('xchat-bttrw')
15 provides=('xchat-bttrw')
17 source=(init-script xchat-bttrw-svn.install xchat-bttrw.conf)
18 md5sums=('675be900a1993a1c90ffa4f5b50a26e3' 'a074dd49a0f523a7aea79cfd55174fd8'\
19          '69a9667427361c7fb3b9b20ba38cb3d8')
20          
21 install=(xchat-bttrw-svn.install)
23 _svntrunk=http://svn.nomi.cz/svn/tomi/xchat-bttrw/head
24 _svnmod=xchat-bttrw
26 build() {
27  cd $startdir/src
28  rm -rf xchat-bttrw/
30  svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
31  cd $_svnmod
33  msg "SVN checkout done or server timeout"
34  msg "Starting make..."
36  make || return 1
38  mkdir -p $startdir/pkg/usr/bin
39  cp gate $startdir/pkg/usr/bin/xchat-bttrw
41  msg "Copying init script and configuration file..."
42  mkdir -p $startdir/pkg/etc/rc.d/
43  cp $startdir/src/init-script $startdir/pkg/etc/rc.d/xchat-bttrw
44  chmod 755 $startdir/pkg/etc/rc.d/xchat-bttrw
45  mkdir -p $startdir/pkg/etc/conf.d/
46  cp $startdir/src/xchat-bttrw.conf $startdir/pkg/etc/conf.d/xchat-bttrw
47  chmod 644  $startdir/pkg/etc/conf.d/xchat-bttrw
49  rm -rf $startdir/src/$_svnmod