updated on Fri Jan 13 20:02:10 UTC 2012
[aur-mirror.git] / nscript-git / PKGBUILD
blob070b9c16fc1f3207464cecf323ac9c24f030c8af
1 # Contributor: Kyle Keen <keenerd@gmail.com>
3 pkgname=nscript-git
4 pkgver=20100824
5 pkgrel=2
6 pkgdesc="A simple stack-based scripting language."
7 url="http://github.com/nikki93/nscript"
8 arch=('i686' 'x86_64')
9 license=('None')  # Seriously!
10 depends=()
11 conflicts=("nscript")
12 provides=("nscript")
13 source=()
14 md5sums=()
16 _gitroot="git://github.com/nikki93/nscript.git"
17 _gitname="nscript"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to github.com..."
23   if [ -d ${srcdir}/${_gitname} ] ; then
24     cd ${_gitname} && git pull origin
25     msg "The local files are updated."
26   else
27     git clone --depth 1 ${_gitroot}
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   #./Configure
34   make
35   #make rest
36   #make DESTDIR="$pkgdir" install
37   # No destdir, no prefix.  Let's do it by hand!
38   install -d "$pkgdir"/usr/bin/
39   install -d "$pkgdir"/usr/lib/
40   install -Dm755 nstest "$pkgdir"/usr/bin/nscript
41   install -Dm644 libnscript.a "$pkgdir"/usr/lib/
42   #find bin/ -executable -type f | xargs install -Dm755 "$pkgdir/usr/bin/"