1 # Contributor: Link Dupont <link.dupont@gmail.com>
2 # Maintainer: Link Dupont <link.dupont@gmail.com>
6 pkgdesc="XBT Tracker is a BitTorrent tracker written in C++"
8 url="http://xbtt.sourceforge.net/tracker/"
11 depends=('libmysqlclient')
12 makedepends=('subversion' 'boost')
15 backup=('etc/xbt_tracker.conf')
18 source=('xbt_tracker.rc' 'README')
20 md5sums=('69c0928877c721b3ba0a4797e8380dfe'
21 'ca8be653f32dfea4c61994bd067ad90e')
23 _svntrunk=https://xbtt.svn.sourceforge.net/svnroot/xbtt/trunk
24 _svntrackermod=xbt/Tracker
30 if [ -d $_svntrackermod/.svn ]; then
31 (cd $_svntrackermod && svn up -r $pkgver)
33 svn co $_svntrunk/$_svntrackermod --config-dir ./ -r $pkgver $_svntrackermod
36 if [ -d $_svnmiscmod/.svn ]; then
37 (cd $_svnmiscmod && svn up -r $pkgver)
39 svn co $_svntrunk/$_svnmiscmod --config-dir ./ -r $pkgver $_svnmiscmod
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"
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