1 # Contributor: Michael Krauss <hippodriver@gmx.net>
6 pkgdesc="Codeville is a distributed version control system"
7 url="http://codeville.org/"
8 depends=('python>=2.3' 'db>=4.1')
11 backup=('etc/cdvserver.conf')
12 source=(http://codeville.org/download/Codeville-$pkgver.tar.gz)
13 md5sums=('86d466d14fb31168236397b0caf3498f')
18 cd $startdir/src/Codeville-$pkgver
19 python setup.py install --prefix=/usr --root=${startdir}/pkg || return 1
20 # prepare directory for the codeville repository
21 mkdir -p $startdir/pkg/var/lib/cdvserver
22 # config file and init script
23 mkdir -p $startdir/pkg/etc/rc.d
24 install --mode=644 cdvserver.conf.sample $startdir/pkg/etc/cdvserver.conf || return 1
25 install --mode=755 $startdir/cdv $startdir/pkg/etc/rc.d/
27 mkdir -p $startdir/pkg/usr/share/licenses/$pkgname
28 cp $startdir/COPYING $startdir/pkg/usr/share/licenses/$pkgname || return 1
30 mkdir -p $startdir/pkg/usr/share/man/man1 || return 1
31 install --mode=644 $startdir/codeville.1.gz \
32 $startdir/pkg/usr/share/man/man1 || return 1
33 install --mode=644 $startdir/cdvserver.1.gz \
34 $startdir/pkg/usr/share/man/man1 || return 1
35 install --mode=644 $startdir/cdv.1.gz \
36 $startdir/pkg/usr/share/man/man1 || return 1