Skip to content

Commit

Permalink
New package: eduke32-20240316.r10564
Browse files Browse the repository at this point in the history
  • Loading branch information
MIvanchev committed Apr 10, 2024
1 parent 6a5760e commit 4cfe821
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions srcpkgs/eduke32/template
Original file line number Diff line number Diff line change
@@ -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 <contact@ivanchev.net>"
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
}

0 comments on commit 4cfe821

Please sign in to comment.