36 lines
944 B
Bash
36 lines
944 B
Bash
# Template file for 'oil'
|
|
pkgname=oil
|
|
version=0.12.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="https://www.oilshell.org/download/oil-${version}.tar.xz"
|
|
checksum=910376b181582e54cd0a33886dfe7db9d8e674a36135b2babcbaa425c5f50bc0
|
|
register_shell="/usr/bin/osh /usr/bin/oil"
|
|
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
|
|
vman doc/osh.1
|
|
# Symlink osh, oil to oil.ovm.
|
|
cd "${DESTDIR}"/usr/bin
|
|
ln -s oil.ovm osh
|
|
ln -s oil.ovm oil
|
|
}
|