summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2016-04-05 14:42:40 -0700
committerAndy Weidenbaum2016-04-05 14:42:40 -0700
commit3dbb35fc9d4a4e969b91dc9a919404f5f2b0b852 (patch)
tree4217ed001711f0f3a6d16d42e13a2d517529ab18
downloadaur-3dbb35fc9d4a4e969b91dc9a919404f5f2b0b852.tar.gz
Initial import
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD38
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a2ce0c80631
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Tue Apr 5 21:42:35 UTC 2016
+pkgbase = c2nim-git
+ pkgdesc = Tool to translate Ansi C code to Nim
+ pkgver = 20151005
+ pkgrel = 1
+ url = https://github.com/nim-lang/c2nim
+ arch = i686
+ arch = x86_64
+ groups = nim
+ license = MIT
+ makedepends = git
+ makedepends = nimble
+ depends = nim
+ provides = c2nim
+ conflicts = c2nim
+ source = c2nim::git+https://github.com/nim-lang/c2nim
+ sha256sums = SKIP
+
+pkgname = c2nim-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5785da334e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=c2nim-git
+pkgver=20151005
+pkgrel=1
+pkgdesc="Tool to translate Ansi C code to Nim"
+arch=('i686' 'x86_64')
+depends=('nim')
+makedepends=('git' 'nimble')
+groups=('nim')
+url="https://github.com/nim-lang/c2nim"
+license=('MIT')
+source=(${pkgname%-git}::git+https://github.com/nim-lang/c2nim)
+sha256sums=('SKIP')
+provides=('c2nim')
+conflicts=('c2nim')
+
+pkgver() {
+ cd ${pkgname%-git}
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
+build() {
+ cd ${pkgname%-git}
+
+ msg2 'Building...'
+ nimble build -y
+}
+
+package() {
+ cd ${pkgname%-git}
+
+ msg2 'Installing documentation...'
+ install -Dm 644 README.md -t "$pkgdir/usr/share/doc/c2nim"
+
+ msg2 'Installing...'
+ install -Dm 755 c2nim -t "$pkgdir/usr/bin"
+}