updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / slang-git / PKGBUILD
blob35cbebadd0bd27116270d928029cfd6bbf8076b7
1 # Maintainer: baskerville <nihilhill@gmail.com>
3 pkgname=slang-git
4 pkgver=20111206
5 pkgrel=1
6 pkgdesc="S-Lang is a powerful interpreted language"
7 arch=('i686' 'x86_64')
8 url="http://www.jedsoft.org/slang/index.html"
9 license=('GPL2')
10 depends=('glibc' 'pcre' 'zlib')
11 optdepends=('oniguruma')
12 makedepends=('git')
13 provides=('slang-git')
14 conflicts=('slang')
16 _gitroot='git://git.jedsoft.org/git/slang.git'
17 _gitname='slang'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./configure --prefix=/usr
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir" install