summaryrefslogtreecommitdiff
path: root/contrib/arch-linux/PKGBUILD-git.nickle
blob: fe6c2a76f05ef83c5cb1e893e4199cb30209f568 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Original contributor: Bob Finch <w9ya@qrpqrci.net>
pkgname=nickle-git
pkgver=20100518
pkgrel=1
pkgdesc="A desk calculator language with powerful programming and scripting capabilities."
arch=('i686' 'x86_64')
url="http://keithp.com/git-repository/"
license=('custom')
provides=('nickle')
conflicts=('nickle')
depends=('readline')
makedepends=('git')

_gitroot="git://keithp.com/git/nickle"
_gitname="nickle"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #

  ./autogen.sh
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir/" install
  
  install -D -m 644 COPYING\
     $startdir/pkg/usr/share/licenses/$_gitname/COPYING.txt
}