mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 00:34:26 +02:00
57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
# Contributor: Samuel Hierholzer <samuel@ton-kunst.ch>
|
|
# Maintainer: James Chen-Smith <james@chen-smith.net>
|
|
pkgname=oils-for-unix
|
|
pkgver=0.29.0
|
|
pkgrel=1
|
|
pkgdesc="Unix shell with JSON-compatible structured data"
|
|
url="https://www.oils.pub/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="readline-dev"
|
|
subpackages="$pkgname-doc $pkgname-binsh::noarch $pkgname-bash::noarch"
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
|
|
source="https://oils.pub/download/oils-for-unix-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
# not gnu autoconf
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-readline
|
|
_build/oils.sh
|
|
}
|
|
|
|
check() {
|
|
_bin/cxx-opt-sh/osh -c 'echo hi'
|
|
_bin/cxx-opt-sh/osh -n -c 'echo hi'
|
|
|
|
_bin/cxx-opt-sh/ysh -c 'echo hi'
|
|
_bin/cxx-opt-sh/ysh -n -c 'echo hi'
|
|
_bin/cxx-opt-sh/ysh -c 'json write ({x: 42}, space=0)'
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" ./install
|
|
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/"$pkgname"
|
|
}
|
|
|
|
binsh() {
|
|
pkgdesc="oils-for-unix as /bin/sh"
|
|
provides="/bin/sh"
|
|
provider_priority=10 # lowest (other providers: dash-binsh, busybox-binsh, yash-binsh)
|
|
|
|
mkdir -p "$subpkgdir"/bin
|
|
ln -s /usr/bin/oils-for-unix "$subpkgdir"/bin/sh
|
|
}
|
|
|
|
bash() {
|
|
pkgdesc="oils-for-unix as /bin/bash"
|
|
provider_priority=10 # lowest (other provider is bash)
|
|
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
|
|
|
|
mkdir -p "$subpkgdir"/bin
|
|
ln -s /usr/bin/oils-for-unix "$subpkgdir"/bin/bash
|
|
}
|
|
|
|
sha512sums="
|
|
81ff9c2c7f05c61bf06ff76250c2bdb037d1f901879c9f938f16ff55e467fae275d905e6e6045f75afbc17779ae7bef06e57e291c22c5b01bb548bab69fb32c5 oils-for-unix-0.29.0.tar.gz
|
|
"
|