Package Details: janet-lang 0.5.0-2

Git Clone URL: https://aur.archlinux.org/janet-lang.git (read-only)
Package Base: janet-lang
Description: A dynamic Lisp dialect and bytecode vm
Upstream URL: https://janet-lang.org/
Licenses: MIT
Conflicts: janet-lang-git
Provides: janet
Submitter: GrayJack
Maintainer: GrayJack
Last Packager: GrayJack
Votes: 3
Popularity: 1.855521
First Submitted: 2019-02-24 02:32
Last Updated: 2019-05-14 15:41

Latest Comments

gambpang commented on 2019-05-19 04:14

Installing this package, I had some errors because the makefile assumes that it will be run in a clone of the janet-lang repo; but the script runs it in just a copy of the tree. The patch below resolves these errors, but would be better if the short commit hash associated with the version tag could be computed instead of hard-coded.

--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,19 +15,21 @@ conflicts=('janet-lang-git')
 source=("https://github.com/janet-lang/janet/archive/v${pkgver}.tar.gz")
 sha256sums=('f5c90122715869657427cbba62809a1d53eaaced2268e7d55202301d65a75076')

+janet_build='JANET_BUILD=\"c7dc361\"'
+
 #prepare() {
 #    cd "${srcdir}/${_pkgname}-${pkgver}"
 #}

 build() {
     cd "${srcdir}/${_pkgname}-${pkgver}"
-    make PREFIX="/usr" CC=clang -j7
+    make PREFIX="/usr" CC=clang $janet_build -j7
 }

 package() {
     cd "${srcdir}/${_pkgname}-${pkgver}"
-    make PREFIX="${pkgdir}/usr" install
-    make PREFIX="${pkgdir}/usr" docs
+    make PREFIX="${pkgdir}/usr" $janet_build install
+    make PREFIX="${pkgdir}/usr" $janet_build docs
     mkdir -p ${pkgdir}/usr/share/janet
     cp -a examples ${pkgdir}/usr/share/janet
     cp -a build/doc.html ${pkgdir}/usr/share/janet