void-packages/srcpkgs/oil/template
2021-01-19 19:42:41 -03:00

37 lines
981 B
Bash

# Template file for 'oil'
pkgname=oil
version=0.8.6
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=7d7d66888f325f39ff4fd71b6d9ffb13afed2ecdd15ec5f73e07c2eec0712235
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
}