openttd: drop noarch

This commit is contained in:
Đoàn Trần Công Danh 2020-10-05 07:28:09 +07:00
parent 7a1eeccda8
commit 62a8867036
2 changed files with 15 additions and 19 deletions

View file

@ -1 +0,0 @@
openttd

View file

@ -1,14 +1,16 @@
# Template file for 'openttd' # Template file for 'openttd'
pkgname=openttd pkgname=openttd
version=1.10.2 version=1.10.2
revision=1 revision=2
_gfxver=0.6.0 _gfxver=0.6.0
_sfxver=0.2.3 _sfxver=0.2.3
create_wrksrc=yes
build_wrksrc=openttd-$version
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="pkg-config unzip tar" hostmakedepends="pkg-config unzip tar"
makedepends="SDL-devel icu-devel fontconfig-devel libpng-devel lzo-devel liblzma-devel makedepends="SDL-devel icu-devel fontconfig-devel libpng-devel lzo-devel liblzma-devel
libxdg-basedir-devel" libxdg-basedir-devel"
depends="openttd-data hicolor-icon-theme" depends="hicolor-icon-theme"
short_desc="Open Source version of Transport Tycoon Deluxe" short_desc="Open Source version of Transport Tycoon Deluxe"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>" maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2.0-only, Zlib" license="GPL-2.0-only, Zlib"
@ -24,8 +26,8 @@ checksum="939c55d259fb13cb47dfb3244e8f7b9e2f723883ebb2119410d8a282724eb6f5
CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1' CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
post_extract() { post_extract() {
cd ${XBPS_BUILDDIR} cd $wrksrc
tar xf opengfx-${_gfxver}.tar bsdtar xf opengfx-${_gfxver}.tar
rm opengfx-${_gfxver}.tar rm opengfx-${_gfxver}.tar
} }
@ -43,18 +45,13 @@ do_configure() {
--with-xdg-basedir --with-xdg-basedir
} }
openttd-data_package() { post_install() {
short_desc+=" - data files" vmkdir usr/share/openttd/data
archs=noarch vcopy ../opengfx-${_gfxver}/*.grf usr/share/openttd/data
pkg_install() { vcopy ../opengfx-${_gfxver}/*.obg usr/share/openttd/data
vmove usr/share/openttd vcopy ../opensfx-${_sfxver}/opensfx.* usr/share/openttd/data
vmkdir usr/share/openttd/data vlicense ../opengfx-${_gfxver}/license.txt LICENSE-gfx
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.grf usr/share/openttd/data vlicense ../opensfx-${_sfxver}/license.txt LICENSE-sfx
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.obg usr/share/openttd/data vdoc ../opengfx-${_gfxver}/readme.txt README-gfx
vcopy ${XBPS_BUILDDIR}/opensfx-${_sfxver}/opensfx.* usr/share/openttd/data vdoc ../opensfx-${_sfxver}/readme.txt README-sfx
vlicense ${XBPS_BUILDDIR}/opengfx-${_gfxver}/license.txt LICENSE-gfx
vlicense ${XBPS_BUILDDIR}/opensfx-${_sfxver}/license.txt LICENSE-sfx
vdoc ${XBPS_BUILDDIR}/opengfx-${_gfxver}/readme.txt README-gfx
vdoc ${XBPS_BUILDDIR}/opensfx-${_sfxver}/readme.txt README-sfx
}
} }