blob: 29d5d72d660b65ef47de9ec37a54259f8d4ad4cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# vim: filetype=bash
# Maintainer: amano.kenji <amano.kenji@proton.me>
pkgname=janet-sh
pkgver=0.0.1.r2023.04.25
pkgrel=1
pkgdesc="Shorthand shell like functions for janet."
arch=("x86_64")
url="https://github.com/andrewchambers/janet-sh"
license=("MIT")
depends=("janet-posix-spawn")
options=("staticlibs")
_commit="221bcc869bf998186d3c56a388c8313060bfd730"
source=("$pkgname-$pkgver.tar.gz::https://github.com/andrewchambers/janet-sh/archive/${_commit}.tar.gz")
sha256sums=('63fd19148f6bd0989119e8023511f0d45b1fa73a4ca9913e6afcf060d0c0c819')
build() {
cd $pkgname-$_commit
jpm build
}
check() {
cd $pkgname-$_commit
jpm test
}
package() {
cd $pkgname-$_commit
install -D -t "${pkgdir}/usr/share/doc/${pkgname}" README.md
modpath="$(janet -e '(print (dyn :syspath))')"
mkdir -p "${pkgdir}/${modpath}"
jpm --dest-dir="${pkgdir}" --modpath="${modpath}" --binpath="/usr/bin" install
}
|