From 119b4aba4032fe26ef9ff848e50ecc74184741c8 Mon Sep 17 00:00:00 2001 From: Mihail Ivanchev Date: Wed, 7 Feb 2024 19:03:20 +0100 Subject: [PATCH] New package: eduke32-20231224.10548 --- srcpkgs/eduke32/template | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 srcpkgs/eduke32/template diff --git a/srcpkgs/eduke32/template b/srcpkgs/eduke32/template new file mode 100644 index 0000000000000..0fa7b731f49a3 --- /dev/null +++ b/srcpkgs/eduke32/template @@ -0,0 +1,40 @@ +# Template file for 'eduke32' +pkgname=eduke32 +_src_tag=20231224-10548-842047589 +_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=20231224.r10548 +revision=1 +build_style=gnu-makefile +make_build_args="PACKAGE_REPOSITORY=1 VC_REV=${_src_rev} VC_HASH=${_src_hash}" +hostmakedepends="pkg-config nasm" +makedepends="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=16ed494f9d09920ac4c5f167f8098a2e1f455da32243b7fd63d7d8e1db13b0e2 + +if [ "$version" != "${_src_date}.r${_src_rev}" ]; then + exit 1 +fi + +case "$XBPS_TARGET_MACHINE" in + *-musl) makedepends+=" libexecinfo-devel" ;; +esac + +do_install() { + vmkdir /usr/bin + vbin eduke32 + vbin mapster32 + vlicense package/common/buildlic.txt +}