summaryrefslogtreecommitdiff
path: root/experimental
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-17 05:31:17 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-17 05:31:17 +0000
commit0ff8195edaad3e3f8b4fb39cdd4903420da5262d (patch)
treeba7fbe884bfc6ade7ed01e5813f757ad578d2af2 /experimental
parent8ebb53f917caf0c3c0a89e3d828bb179be443a47 (diff)
downloadpackages-0ff8195edaad3e3f8b4fb39cdd4903420da5262d.tar.gz
packages-0ff8195edaad3e3f8b4fb39cdd4903420da5262d.tar.bz2
packages-0ff8195edaad3e3f8b4fb39cdd4903420da5262d.tar.xz
packages-0ff8195edaad3e3f8b4fb39cdd4903420da5262d.zip
experimental/nim: new package (fails some tests)
Diffstat (limited to 'experimental')
-rw-r--r--experimental/nim/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/experimental/nim/APKBUILD b/experimental/nim/APKBUILD
new file mode 100644
index 000000000..c64968b44
--- /dev/null
+++ b/experimental/nim/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=nim
+pkgver=0.20.0
+pkgrel=0
+pkgdesc="Statically typed, compiled systems programming language"
+url="https://nim-lang.org/"
+arch="all"
+license=" "
+depends=""
+checkdepends="gc node"
+makedepends="openssl-dev pcre-dev"
+subpackages="$pkgname-doc"
+source="https://nim-lang.org/download/nim-$pkgver.tar.xz"
+
+build() {
+ sh build.sh
+ bin/nim --parallelBuild:${JOBS} c koch
+ ./koch boot --parallelBuild:${JOBS} -d:release
+ PATH="./bin:$PATH" ./koch --stable tools
+}
+
+check() {
+ PATH="./bin:$PATH" ./koch test
+}
+
+package() {
+ PATH="./bin:$PATH" ./koch install "$pkgdir"
+ mkdir -p "$pkgdir"/usr/share/doc
+ mv "$pkgdir"/usr/share/nim/doc "$pkgdir"/usr/share/doc/nim
+
+ for _exec in bin/*; do
+ install -m755 _exec "$pkgdir"/usr/bin/
+ done
+}
+
+sha512sums="e41fc9f9337535d07ebdd14ae8195bf9c666a0a242516f24d50241e69d50e89fcb9ac1a0b1fbeee0bc75b0218aeb18698ff2ac87447005dad52dc18da80bb02d nim-0.20.0.tar.xz"