boswars: split data package [ci skip]
This commit is contained in:
parent
b60de92761
commit
7bfccd3863
1
srcpkgs/boswars-data
Symbolic link
1
srcpkgs/boswars-data
Symbolic link
|
@ -0,0 +1 @@
|
|||
boswars
|
|
@ -1,18 +1,30 @@
|
|||
# Template file for 'boswars'
|
||||
pkgname=boswars
|
||||
version=2.7
|
||||
revision=4
|
||||
revision=5
|
||||
wrksrc="${pkgname}-${version}-src"
|
||||
hostmakedepends="pkg-config libpng-progs python"
|
||||
makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel
|
||||
libvorbis-devel MesaLib-devel SDL-devel glu-devel"
|
||||
makedepends="SDL-devel libpng-devel libtheora-devel libvorbis-devel lua51-devel"
|
||||
depends="${pkgname}-data"
|
||||
short_desc="A futuristic real-time strategy game (RTS)"
|
||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||
license="GPL-2"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="http://boswars.org"
|
||||
distfiles="http://www.boswars.org/dist/releases/boswars-${version}-src.tar.gz"
|
||||
distfiles="${homepage}/dist/releases/boswars-${version}-src.tar.gz"
|
||||
checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e
|
||||
|
||||
post_extract() {
|
||||
#png bugfix for version 2.7, https://savannah.nongnu.org/bugs/?39610
|
||||
|
||||
for i in $(find . -iname '*.png'); do
|
||||
pngfix -q ${i} || {
|
||||
echo "Fixing ${i}"
|
||||
pngfix -q --out=${i/.png/_fixed.png} ${i} || : #ignore exit code
|
||||
pngfix -q ${i/.png/_fixed.png} && mv ${i/.png/_fixed.png} ${i};
|
||||
}
|
||||
done
|
||||
}
|
||||
|
||||
do_build() {
|
||||
# Patch make.py to respect our $CXXFLAGS and $LDFLAGS
|
||||
sed -i make.py \
|
||||
|
@ -41,15 +53,19 @@ do_install() {
|
|||
vinstall ${FILESDIR}/boswars.png 644 usr/share/pixmaps/
|
||||
}
|
||||
|
||||
post_extract() {
|
||||
#png bugfix for version 2.7, https://savannah.nongnu.org/bugs/?39610
|
||||
|
||||
for i in $(find . -iname '*.png'); do
|
||||
pngfix -q ${i} || {
|
||||
echo "Fixing ${i}"
|
||||
pngfix -q --out=${i/.png/_fixed.png} ${i} || : #ignore exit code
|
||||
pngfix -q ${i/.png/_fixed.png} && mv ${i/.png/_fixed.png} ${i};
|
||||
}
|
||||
done
|
||||
boswars-data_package() {
|
||||
short_desc+=" - data files"
|
||||
noarch=yes
|
||||
pkg_install() {
|
||||
vmove usr/share/boswars/campaigns
|
||||
vmove usr/share/boswars/doc
|
||||
vmove usr/share/boswars/graphics
|
||||
vmove usr/share/boswars/intro
|
||||
vmove usr/share/boswars/languages
|
||||
vmove usr/share/boswars/maps
|
||||
vmove usr/share/boswars/patches
|
||||
vmove usr/share/boswars/scripts
|
||||
vmove usr/share/boswars/sounds
|
||||
vmove usr/share/boswars/units
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user