void-packages/srcpkgs/desmume/template

31 lines
1.1 KiB
Bash

# Template file for 'desmume'
pkgname=desmume
version=0.9.13
revision=1
build_style=gnu-configure
build_wrksrc=desmume/src/frontend/posix
configure_args="--enable-wifi --enable-hud --disable-openal"
hostmakedepends="pkg-config intltool"
makedepends="SDL2-devel libpcap-devel soundtouch-devel alsa-lib-devel
gtk+3-devel agg-devel zziplib-devel glu-devel clang17-headers"
depends="desktop-file-utils"
short_desc="Nintendo DS emulator"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://www.desmume.com"
distfiles="https://github.com/TASEmulators/desmume/releases/download/release_${version//./_}/desmume-${version}.tar.xz"
checksum=5734450e0c25f442dd44cda6a40410fd65470f4fe2fa1eb9f0b7b6dae22dabaf
CPPFLAGS="-flax-vector-conversions"
CXXFLAGS="-flax-vector-conversions"
CFLAGS="-flax-vector-conversions"
post_install() {
# locales is only used for glade, but it's never built
# The configure script set GETTEXT_PACKAGE to empty string
# this it's never usable.
# /usr/lib/locale/nb/LC_MESSAGES/.mo
# /usr/share/locale/nb/LC_MESSAGES/.mo
rm -rf $DESTDIR/usr/lib/locale
rm -rf $DESTDIR/usr/share/locale
}