60 lines
2 KiB
Bash
60 lines
2 KiB
Bash
# Template file for 'openttd'
|
|
pkgname=openttd
|
|
version=1.10.1
|
|
revision=1
|
|
_gfxver=0.6.0
|
|
_sfxver=0.2.3
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config unzip tar"
|
|
makedepends="SDL-devel icu-devel fontconfig-devel libpng-devel lzo-devel liblzma-devel
|
|
libxdg-basedir-devel"
|
|
depends="openttd-data hicolor-icon-theme"
|
|
short_desc="Open Source version of Transport Tycoon Deluxe"
|
|
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
|
license="GPL-2.0-only, Zlib"
|
|
homepage="https://www.openttd.org/"
|
|
distfiles="https://proxy.binaries.openttd.org/openttd-releases/${version}/openttd-${version}-source.tar.xz
|
|
https://cdn.openttd.org/opengfx-releases/${_gfxver}/opengfx-${_gfxver}-all.zip
|
|
https://cdn.openttd.org/opensfx-releases/${_sfxver}/opensfx-${_sfxver}-all.zip"
|
|
checksum="0d22a3c50f7a321f4f211594f4987ac16c381e8e3e40f116848e63e91e7fbb9b
|
|
d419c0f5f22131de15f66ebefde464df3b34eb10e0645fe218c59cbc26c20774
|
|
6831b651b3dc8b494026f7277989a1d757961b67c17b75d3c2e097451f75af02"
|
|
|
|
|
|
CXXFLAGS=' -DU_USING_ICU_NAMESPACE=1'
|
|
|
|
post_extract() {
|
|
cd ${XBPS_BUILDDIR}
|
|
tar xf opengfx-${_gfxver}.tar
|
|
rm opengfx-${_gfxver}.tar
|
|
}
|
|
|
|
do_configure() {
|
|
./configure --prefix-dir=/usr \
|
|
--cc-build=gcc \
|
|
--cxx-build=g++ \
|
|
--binary-dir=bin \
|
|
--data-dir=share/openttd \
|
|
--doc-dir=share/doc/openttd \
|
|
--with-lzo2=${XBPS_CROSS_BASE}/usr/lib \
|
|
--binary-name=openttd \
|
|
--install-dir=${DESTDIR} \
|
|
--menu-name=OpenTTD \
|
|
--with-xdg-basedir
|
|
}
|
|
|
|
openttd-data_package() {
|
|
short_desc+=" - data files"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/share/openttd
|
|
vmkdir usr/share/openttd/data
|
|
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.grf usr/share/openttd/data
|
|
vcopy ${XBPS_BUILDDIR}/opengfx-${_gfxver}/*.obg usr/share/openttd/data
|
|
vcopy ${XBPS_BUILDDIR}/opensfx-${_sfxver}/opensfx.* usr/share/openttd/data
|
|
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
|
|
}
|
|
}
|