[arch-commits] Commit in (6 files)

Alexander Rødseth arodseth at archlinux.org
Fri Nov 14 09:33:58 UTC 2014


    Date: Friday, November 14, 2014 @ 10:33:58
  Author: arodseth
Revision: 122548

Package manager for nim (nimrod)

Added:
  nimble/
  nimble/repos/
  nimble/repos/community-i686/
  nimble/repos/community-x86_64/
  nimble/trunk/
  nimble/trunk/PKGBUILD

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Added: nimble/trunk/PKGBUILD
===================================================================
--- nimble/trunk/PKGBUILD	                        (rev 0)
+++ nimble/trunk/PKGBUILD	2014-11-14 09:33:58 UTC (rev 122548)
@@ -0,0 +1,33 @@
+# Maintainer: Alexander F Rødseth <rodseth at gmail.com>
+
+pkgname=nimble
+pkgver=186
+pkgrel=1
+pkgdesc='Package manager for the Nim programming language'
+arch=('x86_64' 'i686')
+url='https://github.com/nimrod-code/nimble'
+license=('BSD')
+makedepends=('nim' 'git')
+source=("$pkgname::git+https://github.com/nimrod-code/nimble.git#commit=b208b66749")
+md5sums=('SKIP')
+
+pkgver () {
+  cd "$pkgname"
+
+  git rev-list --count master
+}
+
+build() {
+  cd "$pkgname/src/"
+
+  nim c -d:release nimble.nim
+}
+
+package() {
+  cd "$pkgname"
+
+  install -Dm755 "src/nimble" "$pkgdir/usr/bin/nimble"
+  install -Dm644 "license.txt" "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+}
+
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list