Created
October 2, 2011 17:03
-
-
Save tlvince/1257637 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment