summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-03-06 18:35:23 -0800
committerAndy Weidenbaum2016-03-06 18:35:23 -0800
commita348f6b66c682d47897e8a811eb64bba27e5fe1e (patch)
tree72fe555545661d647bafc6882b161cf797a24688
downloadaur-a348f6b66c682d47897e8a811eb64bba27e5fe1e.tar.gz
Initial import
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6fe53f6b166
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Mon Mar 7 02:35:08 UTC 2016
+pkgbase = c2nim
+ pkgdesc = Tool to translate Ansi C code to Nim
+ pkgver = 0.9.8
+ pkgrel = 1
+ url = https://github.com/nim-lang/c2nim
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = nimble
+ depends = nim
+ source = c2nim-0.9.8::git+https://github.com/nim-lang/c2nim
+ sha256sums = SKIP
+
+pkgname = c2nim
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..23b522f0ba8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=c2nim
+pkgver=0.9.8
+pkgrel=1
+pkgdesc="Tool to translate Ansi C code to Nim"
+arch=('i686' 'x86_64')
+depends=('nim')
+makedepends=('git' 'nimble')
+url="https://github.com/nim-lang/c2nim"
+license=('MIT')
+source=($pkgname-$pkgver::git+https://github.com/nim-lang/c2nim)
+sha256sums=('SKIP')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Building...'
+ nimble build -y
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 'Installing documentation...'
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
+
+ msg2 'Installing...'
+ install -Dm 755 c2nim -t "$pkgdir/usr/bin"
+}