void-packages/srcpkgs/libgme/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

32 lines
937 B
Bash

# Template file for 'libgme'
pkgname=libgme
version=0.6.3
revision=1
wrksrc="game-music-emu-${version}"
build_style=cmake
configure_args="-DENABLE_UBSAN=OFF"
makedepends="zlib-devel SDL2-devel"
short_desc="Video game music file emulation/playback library"
maintainer="Pierre Allegraud <pierre.allegraud@crans.org>"
license="LGPL-2.1-or-later"
homepage="https://bitbucket.org/mpyne/game-music-emu/wiki/Home"
distfiles="https://bitbucket.org/mpyne/game-music-emu/downloads/game-music-emu-${version}.tar.xz"
checksum=aba34e53ef0ec6a34b58b84e28bf8cfbccee6585cebca25333604c35db3e051d
patch_args=-Np0
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
CXXFLAGS="-DMSB_FIRST=1"
fi
if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then
CXXFLAGS="-DLSB_FIRST=1"
fi
libgme-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
vmove usr/lib/pkgconfig
}
}