updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / libticalcs-svn / PKGBUILD
blob1ad7d1a27a2a580425c7a00c28447526e4bdf06d
1 # Contributor: Jon Sturm <Jasturm002@aol.com>
2 _pkgname=libticalcs
3 pkgname=$_pkgname-svn
4 pkgver=4316
5 pkgrel=1
6 pkgdesc="TI Graphing Calculator library"
7 arch=(i686 x86_64)
8 url="http://tilp.info/"
9 license=('GPL')
10 depends=('libticables' 'libtifiles')
11 makedepends=('subversion')
12 provides=(libticalcs libticalcs2)
13 conflicts=(libticalcs libticalcs2)
14 options=('force' '!libtool')
15 #md5sums=() #generate with 'makepkg -g'
17 _svnmod=$_pkgname
18 _svntrunk=http://svn.tilp.info/repos/tilp/$_svnmod/trunk
20 build() {
21   cd "$srcdir"
23   if [ -d $_svnmod/.svn ]; then
24     (cd $_svnmod && svn up -r $pkgver)
25   else
26     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
27   fi
29   msg "SVN checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_svnmod-build"
33   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
34   cd "$srcdir/$_svnmod-build"
36   #
37   # BUILD
38   #
39   ./configure --prefix=/usr
40   make || return 1
41   make DESTDIR="$pkgdir/" install