forked from ports/contrib
wesnoth: added upx support
This commit is contained in:
parent
fbc9808573
commit
f73729d4a0
@ -3,6 +3,7 @@
|
||||
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
||||
# Packager: Danny Rawlins, romster at shortcircuit dot net dot au
|
||||
# Depends on: xorg sdl_image sdl_mixer sdl_net freetype python
|
||||
# Nice To Have: upx
|
||||
|
||||
name=wesnoth
|
||||
version=1.2.6
|
||||
@ -12,13 +13,11 @@ source=(http://dl.sourceforge.net/sourceforge/wesnoth/wesnoth-$version.tar.bz2)
|
||||
build() {
|
||||
cd wesnoth-$version
|
||||
|
||||
if pkginfo -i |grep '^kdebase '
|
||||
then
|
||||
if pkginfo -i |grep '^kdebase ' > /dev/null; then
|
||||
local configure='--with-kde'
|
||||
fi
|
||||
|
||||
if pkginfo -i |grep '^gnome '
|
||||
then
|
||||
if pkginfo -i |grep '^gnome ' > /dev/null; then
|
||||
local configure='--with-gnome'
|
||||
fi
|
||||
|
||||
@ -31,7 +30,16 @@ build() {
|
||||
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
find $PKG/usr/man -maxdepth 0 -type d ! -regex 'man?' -exec rm -r {} \;
|
||||
rm $PKG/usr/share/wesnoth/data/COPYING.txt
|
||||
|
||||
# compress binary files if upx is installed to save disk space
|
||||
if pkginfo -i |grep '^upx ' > /dev/null; then
|
||||
(
|
||||
cd $PKG/usr/bin
|
||||
upx -9 wesnoth
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user