updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / xbtt-svn / PKGBUILD
blobb70df0e727752e6d74abce3203a625b006c66842
1 # Contributor: Link Dupont <link.dupont@gmail.com>
2 # Maintainer: Link Dupont <link.dupont@gmail.com>
3 pkgname=xbtt-svn
4 pkgver=2078
5 pkgrel=1
6 pkgdesc="XBT Tracker is a BitTorrent tracker written in C++"
7 arch=('x86_64' 'i686')
8 url="http://xbtt.sourceforge.net/tracker/"
9 license=('GPL')
10 groups=()
11 depends=('libmysqlclient')
12 makedepends=('subversion' 'boost')
13 provides=('xbtt')
14 conflicts=('xbtt')
15 backup=('etc/xbt_tracker.conf')
16 options=()
17 install=xbtt.install
18 source=('xbt_tracker.rc' 'README')
19 noextract=()
20 md5sums=('69c0928877c721b3ba0a4797e8380dfe'
21          'ca8be653f32dfea4c61994bd067ad90e')
23 _svntrunk=https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk
24 _svntrackermod=xbt/Tracker
25 _svnmiscmod=xbt/misc
27 build() {
28   cd "$srcdir"
30   if [ -d $_svntrackermod/.svn ]; then
31     (cd $_svntrackermod && svn up -r $pkgver)
32   else
33     svn co $_svntrunk/$_svntrackermod --config-dir ./ -r $pkgver $_svntrackermod
34   fi
36   if [ -d $_svnmiscmod/.svn ]; then
37     (cd $_svnmiscmod && svn up -r $pkgver)
38   else
39     svn co $_svntrunk/$_svnmiscmod --config-dir ./ -r $pkgver $_svnmiscmod
40   fi
42   msg "SVN checkout done or server timeout"
43   msg "Starting make..."
45   rm -rf "$srcdir/$_svntrackermod-build"
46   cp -r "$srcdir/$_svntrackermod" "$srcdir/$_svntrackermod-build"
47   cd "$srcdir/$_svntrackermod-build"
49   #
50   # BUILD
51   #
52   ./make.sh
53   install -m 755 -o root -g root -d $pkgdir/usr/bin $pkgdir/etc $pkgdir/etc/rc.d $pkgdir/usr/share/doc/$pkgname
54   install -m 755 -o root -g root xbt_tracker $pkgdir/usr/bin
55   install -m 644 -o root -g root -T xbt_tracker.conf.default $pkgdir/etc/xbt_tracker.conf
56   install -m 755 -o root -g root -T $srcdir/xbt_tracker.rc $pkgdir/etc/rc.d/xbtt
57   install -m 644 -o root -g root $srcdir/xbt/Tracker/xbt_tracker.sql $pkgdir/usr/share/doc/$pkgname
58   install -m 644 -o root -g root $srcdir/README $pkgdir/usr/share/doc/$pkgname