]> git.gag.com Git - fw/altos/blob - contrib/arch-linux/PKGBUILD-git.nickle
altos/attiny: Update to new interrupt macros
[fw/altos] / contrib / arch-linux / PKGBUILD-git.nickle
1 # Original contributor: Bob Finch <w9ya@qrpqrci.net>
2 pkgname=nickle-git
3 pkgver=20100518
4 pkgrel=1
5 pkgdesc="A desk calculator language with powerful programming and scripting capabilities."
6 arch=('i686' 'x86_64')
7 url="http://keithp.com/git-repository/"
8 license=('custom')
9 provides=('nickle')
10 conflicts=('nickle')
11 depends=('readline')
12 makedepends=('git')
13
14 _gitroot="git://keithp.com/git/nickle"
15 _gitname="nickle"
16
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
20
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
27
28   msg "GIT checkout done or server timeout"
29   msg "Starting make..."
30
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
34
35   #
36   # BUILD HERE
37   #
38
39   ./autogen.sh
40   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir/" install
43   
44   install -D -m 644 COPYING\
45      $startdir/pkg/usr/share/licenses/$_gitname/COPYING.txt
46