public
Created

  • Download Gist
gistfile1.diff
Diff
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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
--- PKGBUILD-old 2011-02-21 09:36:40.000000000 +0000
+++ PKGBUILD 2011-10-02 18:02:16.034036605 +0100
@@ -1,44 +1,51 @@
# Contributor: Martin Ellis <ellism88@gmail.com>
-pkgname="kroc_svn"
-pkgver=6374
+# Contributor: Tom Vincent <http://tlvince.com/contact/>
+
+pkgname=kroc_svn
+pkgver=7216
pkgrel=1
pkgdesc="Kent Retargetable occam Compiler. An occam-pi compiler."
arch=('i686')
url="http://projects.cs.kent.ac.uk/projects/kroc/trac/wiki"
license=('GPL')
groups=()
-depends=('libv4l' 'bash' 'binutils' 'gawk' 'pkgconfig' 'libpng' 'libxmu' 'libxi' 'perl' 'python' 'libxslt')
+depends=('libv4l' 'bash' 'binutils' 'gawk' 'pkgconfig' 'libpng' 'libxmu' 'libxi' 'perl' 'python2' 'libxslt')
makedepends=('subversion')
optdepends=('sdl' 'sdl_sound' 'mesa')
provides=("kroc" "kroc-setup.sh" "occ21")
-md5sums=()
+md5sums=()
_svntrunk="http://projects.cs.kent.ac.uk/projects/kroc/svn/kroc/trunk/"
_svnmod="svnmod"
build() {
cd "$srcdir"
+ msg "Connecting to SVN server...."
- if [ -d $_svnmod/.svn ]; then
- (cd $_svnmod && svn up -r $pkgver)
+ if [[ -d "$_svnmod/.svn" ]]; then
+ (cd "$_svnmod" && svn up -r "$pkgver")
else
- svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
+ svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
fi
msg "SVN checkout done or server timeout"
- msg "Starting make..."
+ msg "Starting build..."
rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
-
-
- msg "building mkoccdeps"
+ export PYTHON="python2"
+ find -type f -name "*.py" -exec sed -i -e 's/env python/&2/' -e 's_/usr/bin/python_&2_' '{}' ';'
autoreconf -vfi
./configure --prefix=/usr
- make || return 1
- make check || return 1
- make DESTDIR="$pkgdir/" install || return 1
-
+ make
+ make check
+}
+
+package() {
+ cd "$srcdir/$_svnmod-build"
+ make DESTDIR="$pkgdir/" install
}
+
+# vim:set ts=2 sw=2 et:

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.