From fe9242f269b53927455365bbdfbc1ea41e826473 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 | 53 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 srcpkgs/eduke32/template diff --git a/srcpkgs/eduke32/template b/srcpkgs/eduke32/template new file mode 100644 index 00000000000000..1f0074fa1260b6 --- /dev/null +++ b/srcpkgs/eduke32/template @@ -0,0 +1,53 @@ +# Template file for 'eduke32' +pkgname=eduke32 +_src_tag=20240316-10564-0bc78c53d +_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=20240316.r10564 +revision=1 +build_style=gnu-makefile +make_build_args="PACKAGE_REPOSITORY=1 VC_REV=${_src_rev} VC_HASH=${_src_hash}" +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" +depends="desktop-file-utils hicolor-icon-theme" +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=8e8acb849a6d7de82d0da498d7adf8d10f4e06114b1cdae5f2d9c7ec66e02ea9 +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 +}