[arch-commits] Commit in nimrod/trunk (PKGBUILD)

Alexander Rødseth arodseth at nymeria.archlinux.org
Wed Apr 30 23:43:48 UTC 2014


    Date: Thursday, May 1, 2014 @ 01:43:48
  Author: arodseth
Revision: 110485

upgpkg: nimrod 0.9.4-1

Modified:
  nimrod/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-04-30 20:58:59 UTC (rev 110484)
+++ PKGBUILD	2014-04-30 23:43:48 UTC (rev 110485)
@@ -12,18 +12,18 @@
 license=('MIT')
 makedepends=('git')
 options=('!emptydirs')
-source=("nimrod::git://github.com/Araq/Nimrod.git"
-        "csources::git://github.com/nimrod-code/csources")
-md5sums=('SKIP' 'SKIP')
+source=("$pkgname::git://github.com/Araq/${pkgname/n/N}.git")
+md5sums=('SKIP')
 
 prepare() {
-  cp -r "$srcdir/csources" "$pkgname/csources"
+  cd "$pkgname"
+  git clone git://github.com/nimrod-code/csources --depth=1
 }
 
 build() {
   cd "$pkgname/csources"
   sh build.sh
-  cd "$srcdir/$pkgname"
+  cd ..
   ./bin/nimrod c koch
   PATH="$PATH":./bin/nimrod ./koch boot -d:release
 }
@@ -30,9 +30,10 @@
 
 package() {
   install -Dm755 "$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
-  cp -r "$pkgname" "$pkgdir/usr/lib/"
-  rm -r "$pkgdir/usr/lib/$pkgname/"{csources,bin}
   install -Dm644 "$pkgname/copying.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -d "$pkgdir/usr/lib/$pkgname"
+  cp -r "$pkgname/" "$pkgdir/usr/lib/"
+  rm -r "$pkgdir/usr/lib/$pkgname/"{bin,csources,.git}
 }
 
 # vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list