void-packages/srcpkgs/oil/template

38 lines
981 B
Bash

# Template file for 'oil'
pkgname=oil
version=0.8.4
revision=1
build_style=configure
configure_args="--prefix=/usr $(vopt_with readline)"
hostmakedepends="$(vopt_if readline readline-devel) python"
makedepends="$hostmakedepends"
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=08fd1c6d653ea594a5dcecb7bf40037e683845cf7627129bbeeb4d0b9fe7b879
python_version=2
register_shell="/usr/bin/osh"
nocross="Binaries doesn't build if cross built"
nostrip=yes
build_options="readline"
build_options_default="readline"
pre_build() {
# Remove the strip wrapper
rm -f "${XBPS_WRAPPERDIR}"/strip
# Use system python
vsed -i 's|$PREPARE_DIR/python|python|g' build/actions.sh
}
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
}