updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / gdis-cvs / PKGBUILD
blobda8f77bd89f3afccade1ee9685c4cc8da8bc4b06
1 #Maintainer: Pietro Bonfa' <bonfus ( at ) gmail.com>
2  
3 pkgname=gdis-cvs
4 pkgver=20110524 
5 pkgrel=1
6 pkgdesc="GDIS is a scientific visualization program for the display, manipulation, and analysis of isolated molecules and periodic structures."
7 arch=('i686' 'x86_64')
8 url="http://gdis.sourceforge.net/"
9 license=('GPL')
10 provides=('gdis')
11 conflicts=('gdis')
12 depends=('gtk2' 'gtkglext')
13 options=('!libtool')
14 makedepends=('cvs' 'perl')
15 source=('makefile' 'gdis.sh')
16 md5sums=('75672b1f8aab349a12dcc8bd257e8722'
17          '2cfe2282636b18174688c5ad2b428385')
19 _cvsroot=":pserver:anonymous@gdis.cvs.sourceforge.net:/cvsroot/gdis"
20 _cvsmod="gdis"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to $_cvsmod.sourceforge.net CVS server...."
25   if [ -d $_cvsmod/CVS ]; then
26     cd $_cvsmod
27     cvs -z3 update -d
28   else
29     cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
30     cd $_cvsmod
31   fi
33   msg "CVS checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_cvsmod-build"
37   cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
38   cp "$srcdir/makefile" "$srcdir/$_cvsmod-build"
39   cd "$srcdir/$_cvsmod-build"
40   
42   make
45   install -D -m 0755  gdis "$pkgdir/opt/gdis/gdis"  
46   install -D -m 0644  gdis.elements "$pkgdir/opt/gdis/gdis.elements"
47   install -D -m 0644  gdis.library "$pkgdir/opt/gdis/gdis.library"
48   install -D -m 0644  gdis.manual "$pkgdir/opt/gdis/gdis.manual"
49     
50   install -D -m 0755 "$srcdir/gdis.sh" "$pkgdir/usr/bin/gdis"