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

Alexander Rødseth arodseth at archlinux.org
Sun Aug 7 12:54:14 UTC 2016


    Date: Sunday, August 7, 2016 @ 12:54:14
  Author: arodseth
Revision: 185870

upgpkg: nim 0.14.2-2

Modified:
  nim/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++++-------------
 1 file changed, 14 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-07 11:52:29 UTC (rev 185869)
+++ PKGBUILD	2016-08-07 12:54:14 UTC (rev 185870)
@@ -6,7 +6,7 @@
 
 pkgname=nim
 pkgver=0.14.2
-pkgrel=1
+pkgrel=2
 pkgdesc='Imperative, multi-paradigm, compiled programming language'
 arch=('x86_64' 'i686')
 url='http://nim-lang.org/'
@@ -41,7 +41,6 @@
 
   cd ../tools
   nim c -d:release nimgrep.nim
-  #nim c -d:release nimrepl.nim # does not compile
 }
 
 package() {
@@ -51,23 +50,25 @@
 
   ./koch install "$pkgdir"
 
-  install -d "$pkgdir/usr/share/nim/doc" "$pkgdir/usr/lib/nim" \
-    "$pkgdir/etc" "$pkgdir/usr/bin"
+  install -d \
+    "$pkgdir/usr/share/nim/doc" "$pkgdir/usr/lib/nim" \
+    "$pkgdir/etc" "$pkgdir/usr/bin" "$pkgdir/usr/include"
 
   cd "$pkgdir/nim"
-  mv "lib/"* "$pkgdir/usr/lib/nim/"
-  mv "config/"* "$pkgdir/etc/"
+  mv lib/* "$pkgdir/usr/lib/nim/"
+  mv config/* "$pkgdir/etc/"
   cp -a "$srcdir/$pkgname/lib/packages" "$pkgdir/usr/lib/nim/"
-  mv "bin/"* "$pkgdir/usr/bin/"
+  mv bin/* "$pkgdir/usr/bin/"
 
+  # Fix FS50252, unusual placement of header files
+  mv "$pkgdir/usr/lib/nim/"*.h "$pkgdir/usr/include/"
+
   cd "$srcdir/$pkgname"
   rm -r "$pkgdir/nim"
-  mv examples web "$pkgdir/usr/share/nim/doc/"
-  mv "doc/"* "$pkgdir/usr/share/nim/doc/"
-  install -m644 "lib/libnimrtl.so" "$pkgdir/usr/lib/libnimrtl.so"
-  install -m755 "tools/nimgrep" "$pkgdir/usr/bin/"
-  #install -m755 "tools/nimrepl" "$pkgdir/usr/bin/"
-  install -Dm644 "copying.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  mv examples web doc/* "$pkgdir/usr/share/nim/doc/"
+  install -m644 lib/libnimrtl.so "$pkgdir/usr/lib/libnimrtl.so"
+  install -m755 tools/nimgrep "$pkgdir/usr/bin/"
+  install -Dm644 copying.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 
   # Fix FS#48118, related to the doc2 command
   ln -s /usr/share/nim/doc "$pkgdir/usr/lib/nim/doc"



More information about the arch-commits mailing list