From c87f9d4e5c4ab32fedc046ac6f0d11a809788e1c Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Wed, 7 Feb 2024 19:03:20 +0100 Subject: [PATCH] New package: eduke32-20240316.r10564 --- srcpkgs/eduke32/template | 61 ++++++++++++++++++++++++++++++++++++++++ srcpkgs/voidsw | 1 + 2 files changed, 62 insertions(+) create mode 100644 srcpkgs/eduke32/template create mode 120000 srcpkgs/voidsw diff --git a/srcpkgs/eduke32/template b/srcpkgs/eduke32/template new file mode 100644 index 00000000000000..25b0adb26a7294 --- /dev/null +++ b/srcpkgs/eduke32/template @@ -0,0 +1,61 @@ +# Template file for 'eduke32' +pkgname=eduke32 +_src_tag=20240523-10572-a3c1d936e +_src_date=${_src_tag%%-*} +_src_rev_and_hash=${_src_tag#*-} +_src_rev=${_src_rev_and_hash%-*} +_src_hash=${_src_rev_and_hash#*-} +# +# The version of value should be dynamically computed but this is rejected by +# the linter so instead we set it manually and later check for equality. +# +#version=${_src_date}.r${_src_rev} +version=20240523.r10572 +revision=1 +build_style=gnu-makefile +make_build_args="PACKAGE_REPOSITORY=1 VC_REV=${_src_rev} VC_HASH=${_src_hash} duke3d sw" +hostmakedepends="pkg-config nasm $(vopt_if setup_window gdk-pixbuf-devel)" +makedepends="$(vopt_if setup_window gtk+-devel) MesaLib-devel glu-devel libvpx-devel SDL2-devel libflac-devel libvorbis-devel alsa-lib-devel" +short_desc="Advanced Duke Nukem 3D source port" +maintainer="Mihail Ivanchev " +license="GPL-2.0-or-later, custom:BUILD" +homepage="https://www.eduke32.com/" +distfiles=""http://dukeworld.com/$pkgname/synthesis/$_src_tag/eduke32_src_${_src_tag}.tar.xz"" +checksum=7c2fb8c9e63c8faa32a89845e187f292c41c0aee554e5f547892bcf5e901bcf0 +repository=nonfree +restricted=yes + +build_options="setup_window" +build_options_default=" " +desc_option_setup_window="Enable the startup setup window; requires GTK+2." + +if [ "$version" != "${_src_date}.r${_src_rev}" ]; then + echo "version is not equal to ${_src_date}.r${_src_rev}; please check the package template." 2>&1 + exit 1 +fi + +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" libexecinfo-devel" ;; +esac + +post_extract() { + case "$XBPS_TARGET_MACHINE" in + *-musl) sed -i 's/LIBS :=/\0 -lexecinfo/' Common.mak ;; + esac +} + +do_install() { + vmkdir /usr/bin + vbin eduke32 + vbin mapster32 + vlicense package/common/buildlic.txt +} + +voidsw_package() { + short_desc+="EDuke32-based sourceport of Shadow Warrior" + pkg_install() { + vmkdir /usr/bin + vbin voidsw + vlicense package/common/buildlic.txt + } +} diff --git a/srcpkgs/voidsw b/srcpkgs/voidsw new file mode 120000 index 00000000000000..630cac9e43c35c --- /dev/null +++ b/srcpkgs/voidsw @@ -0,0 +1 @@ +eduke32 \ No newline at end of file