updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / husky-fidoconf-cvs / PKGBUILD
blobf4bdc618d2b9b1dd31371b8571861ec152a7248b
1 pkgname=husky-fidoconf-cvs
2 pkgver=20091212
3 pkgrel=1
4 pkgdesc="This library is a core part of HUSKY portable fidonet software which parsing and manipulating config file"
5 arch=('i686' 'x86_64')
6 url="http://husky.sf.net"
7 license=('GPL2')
9 depends=('husky-huskylib-cvs' 'husky-smapi-cvs')
10 provides=('fidoconf')
12 _cvsroot=":pserver:anonymous@husky.cvs.sourceforge.net:/cvsroot/husky"
13 _cvsmod="fidoconf"
16 build() {
17         msg "Performing source checkout..."
18         if [ -d "$_cvsmod/CVS" ]; then
19                 cd "$_cvsmod"
20                 cvs -z3 update -d || return 1
21                 cd ..
22         else
23                 cvs -z3 -d $_cvsroot co -D $pkgver -f "$_cvsmod" || return 1
24         fi
25         msg "Source checkout finished."
26         rm -rf "$_cvsmod-build"
27         cp -r "$_cvsmod" "$_cvsmod-build" || return 1
28         cd "$_cvsmod-build"
29         cp huskymak.cfg ${srcdir}
30         make || return 1
31         make DESTDIR=${pkgdir} install