mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
57 lines
1.6 KiB
Text
57 lines
1.6 KiB
Text
# Contributor: Samuel Hierholzer <samuel@ton-kunst.ch>
|
|
# Maintainer: Samuel Hierholzer <samuel@ton-kunst.ch>
|
|
pkgname=oils-for-unix
|
|
pkgver=0.28.0
|
|
pkgrel=0
|
|
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="
|
|
5b9f38b483afeee6eefa9463d434d1972e83a943f55749225eeb094608265263c88f2b0eadc8902f61641a3beef387b13dfd662326e52b12a08ead327cb0653c oils-for-unix-0.28.0.tar.gz
|
|
"
|