summaryrefslogtreecommitdiff
path: root/community/plan9port/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-25 01:42:20 -0700
committerroot <root@rshg054.dnsready.net>2012-10-25 01:42:20 -0700
commita3b55a0c47a00ac40bc00a4ce87d93f809273840 (patch)
tree6fcc1360f835115b132c35ca978b1f804540a372 /community/plan9port/PKGBUILD
parent120df4e0db159525806a9b33364483e76f9d51d3 (diff)
Thu Oct 25 01:42:05 PDT 2012
Diffstat (limited to 'community/plan9port/PKGBUILD')
-rw-r--r--community/plan9port/PKGBUILD50
1 files changed, 30 insertions, 20 deletions
diff --git a/community/plan9port/PKGBUILD b/community/plan9port/PKGBUILD
index 41ff541a6..df7d3f3f0 100644
--- a/community/plan9port/PKGBUILD
+++ b/community/plan9port/PKGBUILD
@@ -1,11 +1,13 @@
-# $Id: PKGBUILD 73814 2012-07-15 22:19:23Z cbrannon $
+# $Id: PKGBUILD 78790 2012-10-24 21:59:59Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: phrakture <aaronmgriffin--gmail--com>
# Contributor: Fazlul Shahriar
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
+
pkgname=plan9port
-pkgver=20120715
+pkgver=20121022
pkgrel=1
-pkgdesc="A port of many programs from Plan 9 to Unix-like operating systems"
+pkgdesc='Port of many programs from Plan 9'
arch=('i686' 'x86_64')
url="http://swtch.com/plan9port/"
license=('custom')
@@ -14,17 +16,28 @@ optdepends=('python2: for the codereview script')
provides=('plan9')
install=plan9.install
source=(http://swtch.com/$pkgname/$pkgname-$pkgver.tgz plan9.sh)
+sha256sums=('1293b5d2e46d0d6f7be2adbdb285ce278a25c77e88b5cd7c230e16a47d0f8638'
+ '0247c4446497359d305aaec069b07180fbf79ce4fa5191464cd9ebb8c7f0228d')
+
+build() {
+ cd "$srcdir/plan9"
+
+ ./INSTALL -b
+}
+
+package() {
+ cd "$srcdir/plan9"
-build()
-{
- install -Dm755 "$srcdir/plan9.sh" "$pkgdir/etc/profile.d/plan9.sh" || return 1
+ install -Dm755 ../plan9.sh $pkgdir/etc/profile.d/plan9.sh
- install -dm755 "$pkgdir/opt" "$pkgdir/usr/share/doc/$pkgname" || return 1
- mv "$srcdir/plan9" "$pkgdir/opt"
+ mkdir -p "$pkgdir/opt"
+ cp -r $srcdir/plan9 $pkgdir/opt/
+ mkdir -p $pkgdir/usr/share/doc/$pkgname
cd "$pkgdir/opt/plan9"
- ./INSTALL || return 1
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
+ ./INSTALL -c -r "$pkgdir/opt/plan9"
+
+ install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
# Don't need these under /opt/plan9.
rm -rf .hg/
@@ -33,21 +46,18 @@ build()
rm -f config install.log install.sum install.txt configure Makefile INSTALL \
LICENSE
- borkedfiles=`grep -r "$pkgdir"/opt/plan9 * | grep -v Binary | cut -d\: -f1`
- for f in $borkedfiles; do
- echo "fixing hardcoded paths in $f"
- sed -i "s@$pkgdir/opt/plan9@/opt/plan9@" $f || return 1
+ msg2 "Fixing hardcoded paths..."
+ for f in `grep -H -r "$pkgdir/opt/plan9" | cut -d: -f1`; do
+ echo -n "\t$f"
+ [ -e "$f" ] && sed -i "s:$pkgdir/opt/plan9:/opt/plan9:" "$f" || true
done
find "$pkgdir" -name '*.py' -print0 |xargs -0 \
- sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
+ sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/python2,' \
-e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
- for i in CHANGES CONTRIBUTORS README TODO
- do
- install -m644 $i "$pkgdir/usr/share/doc/$pkgname" || return 1
+ for i in CHANGES CONTRIBUTORS README TODO; do
+ install -m644 $i "$pkgdir/usr/share/doc/$pkgname"
rm -f $i
done
}
-md5sums=('1e0698aa5f652a1a47227be2b25fa8fd'
- '9695eb15a247e23140e8a35ff52a5c20')