UQM: move seds to PATCH() section

* remove unneeded build requires
This commit is contained in:
Gerasim Troeglazov
2019-01-16 11:34:16 +10:00
parent 7b46c84055
commit 8cc423a678

View File

@@ -8,7 +8,7 @@ project and thus help make it even better. For more information, look at \ ourin
HOMEPAGE="http://sc2.sourceforge.net/"
COPYRIGHT="2005-2018 VCMI Team"
LICENSE="GNU GPL v2"
REVISION="2"
REVISION="3"
SOURCE_URI="https://sourceforge.net/projects/sc2/files/UQM/0.7/uqm-$portVersion-1-source.tgz"
CHECKSUM_SHA256="136015af296b03e45a47cd19e6c4815de118c26e56548dc75d182f8d8bd028e7"
SOURCE_DIR="uqm-$portVersion-1"
@@ -41,7 +41,6 @@ REQUIRES="
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libglu$secondaryArchSuffix
devel:libmikmod$secondaryArchSuffix
devel:libogg$secondaryArchSuffix
devel:libpng$secondaryArchSuffix
@@ -49,7 +48,6 @@ BUILD_REQUIRES="
devel:libsdl_image$secondaryArchSuffix
devel:libvorbisfile$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:as$secondaryArchSuffix
@@ -60,6 +58,13 @@ BUILD_PREREQUIRES="
cmd:tr
"
PATCH()
{
sed -i -e '/read CHOICE/d' build/unix/menu_functions
sed -i -e "s/-O3//" build/unix/build.config
sed -i -e "s:~/.uqm/:~/config/settings/UQM/:g" src/config_unix.h.in
}
BUILD()
{
cat <<-EOF > config.state
@@ -73,10 +78,6 @@ BUILD()
INPUT_install_sharedir_VALUE='$appsDir/UQM'
EOF
sed -i -e '/read CHOICE/d' build/unix/menu_functions
sed -i -e "s/-O3//" build/unix/build.config
sed -i -e "s:~/.uqm/:~/config/settings/UQM/:g" src/config_unix.h.in
./build.sh uqm
}