Skip to content
Snippets Groups Projects
Commit bbf7919f authored by Samuel Hierholzer's avatar Samuel Hierholzer Committed by Kevin Daudt
Browse files

testing/oils-for-unix: new aport

parent aaee1d42
No related branches found
No related tags found
2 merge requests!79570community/firefox-esr: upgrade to 128.7.0,!70331testing/oils-for-unix: new aport
Pipeline #294763 skipped
# Contributor: Samuel Hierholzer <samuel@ton-kunst.ch>
# Maintainer: Samuel Hierholzer <samuel@ton-kunst.ch>
pkgname=oils-for-unix
pkgver=0.26.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 $pkgname-bash"
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="
89d297b30aa426a276f16c07d3c37ffec4091b52487e644e34217438bb7ba1792c3a127a293a5d0ceee3e2bf379f26c44408a7eb2fd1e08741bd4eb5131efe54 oils-for-unix-0.26.0.tar.gz
"
#!/bin/bash
add-shell '/bin/bash'
exit 0
oils-for-unix-bash.post-install
\ No newline at end of file
#!/bin/bash
remove-shell '/bin/bash'
exit 0
#!/usr/bin/osh
add-shell '/usr/bin/osh'
add-shell '/usr/bin/ysh'
exit 0
oils-for-unix.post-install
\ No newline at end of file
#!/usr/bin/osh
remove-shell '/usr/bin/osh'
remove-shell '/usr/bin/ysh'
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment