Package Details: janet-lang 1.8.1-2

Git Clone URL: https://aur.archlinux.org/janet-lang.git (read-only, click to copy)
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: 0.002889
First Submitted: 2019-02-24 02:32
Last Updated: 2020-04-03 06:18

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

ruzsa.balazs commented on 2020-04-03 06:06

Permissions of /usr/share/janet are still wrong (0644 instead of 0755).

GrayJack commented on 2020-03-15 06:16

@jonathon, love it, much better!! I'll push the changes in a little bit

jonathon commented on 2020-03-14 16:29

@GrayJack I've attempted to streamline the installation steps a little. git diff:

diff --git a/.SRCINFO b/.SRCINFO
index 8ca4206..914589a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -13,7 +13,7 @@ pkgbase = janet-lang
    makedepends = clang
    provides = janet
    conflicts = janet-lang-git
-   source = https://github.com/janet-lang/janet/archive/v1.7.0.tar.gz
+   source = janet-lang-1.7.0.tar.gz::https://github.com/janet-lang/janet/archive/v1.7.0.tar.gz
    sha256sums = 2a119f3a79b209a858864e73ca3efda57ac044df3c89762a31480bbea386d2a3

 pkgname = janet-lang
diff --git a/PKGBUILD b/PKGBUILD
index 6958110..17a8e3d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,46 +8,36 @@ pkgdesc="A dynamic Lisp dialect and bytecode vm"
 arch=('armv6h' 'armv7h' 'i686' 'x86_64' 'aarch64')
 url="https://janet-lang.org/"
 license=('MIT')
-depends=()
 makedepends=('git' 'clang')
 provides=('janet')
 conflicts=('janet-lang-git')
-source=("https://github.com/janet-lang/janet/archive/v${pkgver}.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/janet-lang/janet/archive/v${pkgver}.tar.gz")
 sha256sums=('2a119f3a79b209a858864e73ca3efda57ac044df3c89762a31480bbea386d2a3')

 janet_build='JANET_BUILD=\"f7ee8bd\"'

-# janet_build() {
-#     printf 'JANET_BUILD=\"%s\"' "$(git rev-parse --short HEAD)"
-# }
-
-#prepare() {
-#    cd "${srcdir}/${_pkgname}-${pkgver}"
-#}
-
 build() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-    make PREFIX="/usr" CC=clang $janet_build -j7
+    cd $_pkgname-$pkgver
+    make PREFIX="/usr" CC=clang $janet_build
     make PREFIX="/usr" build/janet.pc
     make PREFIX="/usr" docs
 }

 package() {
-    cd "${srcdir}/${_pkgname}-${pkgver}"
-
-
-    install -dm 755 "${pkgdir}/usr/lib/janet"
-    install -Dm 755 "build/janet" "${pkgdir}/usr/bin/janet"
-    install -Dm 755 "auxbin/jpm" "${pkgdir}/usr/bin/jpm"
-    install -Dm 644 "src/include/janet.h" "${pkgdir}/usr/include/janet/janet.h"
-    install -Dm 644 "src/conf/janetconf.h" "${pkgdir}/usr/include/janet/janetconf.h"
-    install -Dm 644 "build/libjanet.so" "${pkgdir}/usr/lib/libjanet.so.${_pkgver}"
-    install -Dm 644 "build/libjanet.a" "${pkgdir}/usr/lib/libjanet.a"
-    install -Dm 644 "janet.1" "${pkgdir}/usr/share/man/janet.1"
-    install -Dm 644 "jpm.1" "${pkgdir}/usr/share/man/jpm.1"
-    install -Dm 644 "build/janet.pc" "${pkgdir}/usr/lib/pkgconfig/janet.pc"
-
-    install -dm 644 "${pkgdir}/usr/share/janet"
-    cp -a examples "${pkgdir}/usr/share/janet"
-    cp -a build/doc.html "${pkgdir}/usr/share/janet"
+    cd $_pkgname-$pkgver
+
+    install -Dt       "${pkgdir}"/usr/bin build/janet auxbin/jpm
+    install -Dm644 -t "${pkgdir}"/usr/include/janet src/include/janet.h src/conf/janetconf.h
+
+    install -Dm644 -t "${pkgdir}"/usr/lib build/libjanet.a build/libjanet.so
+    ln -s libjanet.so "${pkgdir}"/usr/lib/libjanet.so.$pkgver
+
+    install -Dm644 "build/janet.pc" "${pkgdir}"/usr/lib/pkgconfig/janet.pc
+
+    install -Dm644 -t "${pkgdir}"/usr/share/man janet.1 jpm.1
+
+    install -dm644 "${pkgdir}"/usr/share/janet
+    cp -a examples "${pkgdir}"/usr/share/janet
+
+    install -Dm644 build/doc.html "${pkgdir}"/usr/share/doc/janet/doc.html
 }

GrayJack commented on 2020-03-02 17:19

Oops, sorry, fixed now!! Thanks to notice this error :)

ruzsa.balazs commented on 2020-03-01 11:04

PKGBUILD sets wrong permissions on /usr/share/janet:

install -dm 644 "${pkgdir}/usr/share/janet"

This resulted in the following warning when I upgraded from 1.6.0:

warning: directory permissions differ on /usr/share/janet/
filesystem: 755  package: 644

GrayJack commented on 2020-02-26 03:14

Nac, do still have issues? I updated the way it installs the files

GrayJack commented on 2020-02-26 03:12

Honix, I updated to create the missing directory, can you test to see if it fix your issue?

Worked on my machine, but I want to be sure before porting to the git package

But i would really recommend setting up a JANET_MODPATH environment variable to a local path of your choice

honix commented on 2020-02-25 23:10

'/usr/lib/janet' dir is required by jpm (janet package manager) and will be spawned when install. Related issue: https://github.com/janet-lang/janet/issues/286

nac commented on 2019-05-26 23:07

I haven't looked at the major differences between this package and janet-lang-git, but the git version seems to place the header files correctly in my file system, while this package creates symlinks pointing to the build directory location.

GrayJack commented on 2019-05-24 00:47

Looks like "JANET_BUILD" is just a constant used to print in the repl, shouldn't make much difference since this specific error is ignored if happens