[arch-commits] Commit in nim/repos (community-i686/PKGBUILD community-x86_64/PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Thu Nov 13 13:02:59 UTC 2014


    Date: Thursday, November 13, 2014 @ 14:02:59
  Author: arodseth
Revision: 122514

archrelease: copy trunk to community-x86_64, community-i686

Added:
  nim/repos/community-i686/PKGBUILD
    (from rev 122513, nim/trunk/PKGBUILD)
  nim/repos/community-x86_64/PKGBUILD
    (from rev 122513, nim/trunk/PKGBUILD)

---------------------------+
 community-i686/PKGBUILD   |   69 ++++++++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD |   69 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 138 insertions(+)

Copied: nim/repos/community-i686/PKGBUILD (from rev 122513, nim/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2014-11-13 13:02:59 UTC (rev 122514)
@@ -0,0 +1,69 @@
+# $Id: PKGBUILD 121061 2014-10-20 12:57:19Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Dominik Picheta <morfeusz8 at gmail.com>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
+
+pkgname=nim
+pkgver=0.9.6
+pkgrel=1
+pkgdesc='Imperative, multi-paradigm, compiled programming language'
+arch=('x86_64' 'i686')
+url='http://nimrod-code.org/'
+license=('MIT')
+makedepends=('git')
+replaces=('nimrod')
+options=('!emptydirs')
+source=("$pkgname::git://github.com/Araq/Nimrod.git#commit=06a4ab54aa")
+#source=("$pkgname::git://github.com/Araq/Nimrod.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd "$pkgname"
+
+  rm build/empty.txt && rmdir build
+  git clone --depth=1 git://github.com/nimrod-code/csources build
+}
+
+build() {
+  cd "$pkgname/build"
+  sh build.sh
+  cd ..
+
+  ./bin/nim c koch
+  ./koch boot -d:release -d:useGnuReadline
+
+  export PATH="$srcdir/$pkgname/bin:$PATH"
+
+  cd lib
+  nim c --app:lib -d:createNimRtl -d:release nimrtl.nim
+
+  cd ../tools
+  nim c -d:release nimgrep.nim
+}
+
+package() {
+  cd "$pkgname"
+
+  export PATH="$srcdir/$pkgname/bin:$PATH"
+  
+  ./koch install "$pkgdir"
+
+  install -d "$pkgdir/usr/share/nim/doc" "$pkgdir/usr/lib/nim" "$pkgdir/etc" "$pkgdir/usr/bin"
+
+  cd "$pkgdir/nim"
+  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/"
+
+  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 -Dm644 "copying.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: nim/repos/community-x86_64/PKGBUILD (from rev 122513, nim/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2014-11-13 13:02:59 UTC (rev 122514)
@@ -0,0 +1,69 @@
+# $Id: PKGBUILD 121061 2014-10-20 12:57:19Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Dominik Picheta <morfeusz8 at gmail.com>
+# Contributor: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Jesus Alvarez <jeezusjr at gmail.com>
+
+pkgname=nim
+pkgver=0.9.6
+pkgrel=1
+pkgdesc='Imperative, multi-paradigm, compiled programming language'
+arch=('x86_64' 'i686')
+url='http://nimrod-code.org/'
+license=('MIT')
+makedepends=('git')
+replaces=('nimrod')
+options=('!emptydirs')
+source=("$pkgname::git://github.com/Araq/Nimrod.git#commit=06a4ab54aa")
+#source=("$pkgname::git://github.com/Araq/Nimrod.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cd "$pkgname"
+
+  rm build/empty.txt && rmdir build
+  git clone --depth=1 git://github.com/nimrod-code/csources build
+}
+
+build() {
+  cd "$pkgname/build"
+  sh build.sh
+  cd ..
+
+  ./bin/nim c koch
+  ./koch boot -d:release -d:useGnuReadline
+
+  export PATH="$srcdir/$pkgname/bin:$PATH"
+
+  cd lib
+  nim c --app:lib -d:createNimRtl -d:release nimrtl.nim
+
+  cd ../tools
+  nim c -d:release nimgrep.nim
+}
+
+package() {
+  cd "$pkgname"
+
+  export PATH="$srcdir/$pkgname/bin:$PATH"
+  
+  ./koch install "$pkgdir"
+
+  install -d "$pkgdir/usr/share/nim/doc" "$pkgdir/usr/lib/nim" "$pkgdir/etc" "$pkgdir/usr/bin"
+
+  cd "$pkgdir/nim"
+  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/"
+
+  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 -Dm644 "copying.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list