void-packages/srcpkgs/oil/template

34 lines
848 B
Bash

# Template file for 'oil'
pkgname=oil
version=0.7.0
revision=1
build_style=configure
configure_args="--prefix=/usr $(vopt_with readline)"
makedepends="$(vopt_if readline readline-devel)"
short_desc="Oil, a new unix shell"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://www.oilshell.org"
distfiles="${homepage}/download/${pkgname}-${version}.tar.xz"
checksum=a37eb491ffee5766aa8719056d42d5d836309dc26e345ecd6a2a1d240cd18989
python_version=2 #unverified
register_shell="/usr/bin/osh"
nocross="oil is nocross"
nostrip=yes
build_options="readline"
build_options_default="readline"
pre_build() {
# Remove the strip wrapper
rm -f "${XBPS_WRAPPERDIR}"/strip
}
do_install() {
# Install binaries
vbin _bin/oil.ovm
# Symlink osh, oshc to oil.ovm.
cd "${DESTDIR}"/usr/bin
ln -s oil.ovm osh
ln -s oil.ovm oshc
}