34 lines
910 B
Bash
34 lines
910 B
Bash
# Template file for 'oil'
|
|
pkgname=oil
|
|
version=0.9.8
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--prefix=/usr $(vopt_with readline)"
|
|
hostmakedepends="$(vopt_if readline readline-devel)"
|
|
makedepends="$hostmakedepends"
|
|
short_desc="Oil, a new unix shell"
|
|
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.oilshell.org"
|
|
distfiles="${homepage}/download/${pkgname}-${version}.tar.xz"
|
|
checksum=3acaf17c9e5d17d027a60d6be878fe683d7de25f7d5fd621e2f219f91f9a1fc1
|
|
register_shell="/usr/bin/osh"
|
|
nocross="Build systems gets confused with host and cross toolchains/headers"
|
|
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
|
|
}
|