updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / golded-plus-cvs / PKGBUILD
blob200497ff62e5b769483ed08c549adcd8170e0a3f
1 pkgname=golded-plus-cvs
2 pkgver=20091209
3 pkgrel=1
4 pkgdesc="This is a successor of the well-known GoldED Fidonet Mail Reader/Editor"
5 arch=('i686' 'x86_64')
6 url="http://bbconf.sourceforge.net/"
7 license=('GPL2')
9 depends=()
10 provides=('golded-plus')
12 _cvsroot=":pserver:anonymous@golded-plus.cvs.sourceforge.net:/cvsroot/golded-plus"
13 _cvsmod="golded+"
15 options=('!libtool')
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 golded3/mygolded.__h golded3/mygolded.h || return 1
30         make || return 1
31         mkdir -p ${pkgdir}/usr/bin
32         install -Dm755 bin/{gedlnx,golded,gnlnx,rddtlnx} ${pkgdir}/usr/bin/