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

Alexander Rødseth arodseth at archlinux.org
Sat Mar 12 10:22:25 UTC 2016


    Date: Saturday, March 12, 2016 @ 11:22:25
  Author: arodseth
Revision: 166212

upgpkg: nimble 1:0.7.2-2

Modified:
  nimble/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-03-12 09:53:03 UTC (rev 166211)
+++ PKGBUILD	2016-03-12 10:22:25 UTC (rev 166212)
@@ -3,8 +3,8 @@
 
 pkgname=nimble
 pkgver=0.7.2
+pkgrel=2
 epoch=1
-pkgrel=1
 pkgdesc='Package manager for the Nim programming language'
 arch=('x86_64' 'i686')
 url='https://github.com/nim-lang/nimble'
@@ -29,8 +29,15 @@
 package() {
   cd "$pkgname"
 
-  install -Dm755 "src/nimble" "$pkgdir/usr/bin/nimble"
-  install -Dm644 "license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+  # Does not work. Also not separating compilation from installation.
+  # nim c -r src/nimble install
+
+  install -Dm755 src/nimble "$pkgdir/usr/bin/nimble"
+  install -Dm644 license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+
+  # Nimble looks for nimscriptapi.nim in /usr/bin/nimblepkg/, of all places.
+  cp -r src/nimblepkg "$pkgdir/usr/share/$pkgname"
+  ln -s "/usr/share/$pkgname" "$pkgdir/usr/bin/nimblepkg"
 }
 
 # getver: github.com/nim-lang/nimble



More information about the arch-commits mailing list