mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-07 06:32:29 +01:00
63 lines
1.6 KiB
Plaintext
63 lines
1.6 KiB
Plaintext
# Contributor: Adrian Siekierka <kontakt@asie.pl>
|
|
# Maintainer: Adrian Siekierka <kontakt@asie.pl>
|
|
pkgname=openttd
|
|
pkgver=1.8.0
|
|
pkgrel=1
|
|
pkgdesc="Open source version of the Transport Tycoon Deluxe simulator"
|
|
url="http://openttd.org"
|
|
arch="all"
|
|
license="GPL-2.0-only"
|
|
depends=""
|
|
makedepends="fontconfig-dev freetype-dev libpng-dev lzo-dev sdl-dev xz-dev zlib-dev"
|
|
subpackages="$pkgname-doc $pkgname-lang::noarch"
|
|
source="https://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz
|
|
fix-pthread-stacksize.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
|
|
# OpenTTD's builtin strip does not work when cross-compiling,
|
|
# but it will be done automatically later in the package build.
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--disable-strip \
|
|
--prefix-dir=/usr \
|
|
--binary-dir=bin \
|
|
--install-dir="${pkgdir}" \
|
|
--with-sdl \
|
|
--with-zlib \
|
|
--with-liblzma \
|
|
--with-liblzo2 \
|
|
--with-freetype \
|
|
--with-fontconfig \
|
|
--without-icu
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
bin/openttd --version
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make install
|
|
}
|
|
|
|
lang() {
|
|
pkgdesc="$pkgdesc (localizations)"
|
|
|
|
cd "$pkgdir"
|
|
mkdir -p "$subpkgdir"/usr/share/games/openttd/lang
|
|
|
|
local i
|
|
for i in $(find usr/share/games/openttd/lang/ ! -name 'english.lng' -type f); do
|
|
mv "$i" "$subpkgdir"/"$i"
|
|
done
|
|
}
|
|
|
|
sha512sums="a2d61b3c94a550c8f3a581127df8c3459b1ddff5ba924942c468cbc70e88e0bf4405cecb68a91243b544ead64f215aa8d489a07b38dce507ae7d59e8ec155d7a openttd-1.8.0-source.tar.xz
|
|
90db187919cb802ea6abddc03f09e85fe278175f5830f26e86d4a3b98f60bf233b0acaafd7e7a8f01c8e9a6bc059c171c88f8fcf36fc713624f972a8a8ad073f fix-pthread-stacksize.patch"
|