From 9ecf9d965f5f8a07e75d8a8587462e8e90a2ba91 Mon Sep 17 00:00:00 2001 From: meator Date: Sat, 14 Sep 2024 19:14:17 +0200 Subject: [PATCH] New package: oils-for-unix-0.28.0 --- srcpkgs/oils-for-unix/template | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 srcpkgs/oils-for-unix/template diff --git a/srcpkgs/oils-for-unix/template b/srcpkgs/oils-for-unix/template new file mode 100644 index 00000000000..4e8f974e999 --- /dev/null +++ b/srcpkgs/oils-for-unix/template @@ -0,0 +1,34 @@ +# Template file for 'oils-for-unix' +pkgname=oils-for-unix +version=0.28.0 +revision=1 +build_style=gnu-configure +configure_args="$(vopt_with readline) --readline=$XBPS_CROSS_BASE" +makedepends="$(vopt_if readline readline-devel)" +short_desc="New unix shell with JSON-compatible structured data" +maintainer="meator " +license="Apache-2.0" +homepage="https://oils.pub/" +distfiles="https://oils.pub/download/oils-for-unix-${version}.tar.gz" +checksum=266d14b16d90d4a07fe774881eafa0ecdbbc8411cf1c75f8b6e256370b668e35 +register_shell="/usr/bin/osh /usr/bin/ysh" +conflicts="oil" + +build_options="readline" +build_options_default="readline" + +do_build() { + # OILS_PARALLEL_BUILD affects only the first (largest) TU, + # everything else is build sequentially. + if [ "$XBPS_MAKEJOBS" -eq 1 ]; then + export OILS_PARALLEL_BUILD=0 + else + export OILS_PARALLEL_BUILD=1 + fi + _build/oils.sh --cxx "$CXX" +} + +do_install() { + # Build dir embeds the compiler name in it. + DESTDIR="$DESTDIR" ./install _bin/$CXX-opt-sh/oils-for-unix +}