updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / pforth-svn / PKGBUILD
blob44384d01b5c4d0b8fb66e6762cfdc13a9776dbe6
1 # Maintainer:  Nicola Fontana <ntd@entidi.it>
3 pkgname=pforth-svn
4 pkgver=50
5 pkgrel=1
6 pkgdesc='A portable implementation of the Forth programming language written in ANSI C.'
7 url='http://code.google.com/p/pforth/'
8 arch=('i686' 'x86_64')
9 license=('custom')
10 depends=()
11 makedepends=()
12 conflicts=('pforth')
13 provides=('pforth')
14 source=()
15 md5sums=()
17 _svntrunk='http://pforth.googlecode.com/svn/trunk/'
18 _svnmod='pforth-read-only'
20 build()
22     cd $srcdir
24     if [ -d $_svnmod/.svn ]; then
25         (cd $_svnmod && svn up -r $pkgver)
26     else
27         svn co $_svntrunk --config-dir ${srcdir}/.subversion -r $pkgver $_svnmod
28     fi
30     cd $_svnmod
31     make -f build/unix/Makefile all \
32         SRCDIR=.  FULL_WARNINGS= DEBUGOPTS= \
33         EXTRA_CCOPTS='-DPF_DEFAULT_DICTIONARY=\"/usr/share/pforth/pforth.dic\"'
34     install -D -m755 pforth ${pkgdir}/usr/bin/pforth || return 1
35     install -D -m755 pforth_standalone ${pkgdir}/usr/bin/pforth_standalone || return 1
36     install -D -m644 pforth.dic $pkgdir/usr/share/pforth/pforth.dic
37     install -D -m644 readme.txt $pkgdir/usr/share/pforth/README
38     install -D -m644 releases.txt $pkgdir/usr/share/pforth/NEWS