Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions extra/openttd-opengfx/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Alpine Contributor: Adrian Siekierka <[email protected]>
# Apline Maintainer: Thomas Kienlen <[email protected]>
# Maintainer: abdulahmoda <[email protected]>
pkgname=openttd-opengfx
pkgver=8.0
pkgrel=0
pkgdesc="Free graphics set for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # No test suite
source="https://cdn.openttd.org/opengfx-releases/$pkgver/opengfx-$pkgver-all.zip"
builddir="$srcdir/opengfx-$pkgver"
install_if="openttd"

prepare() {
default_prepare

cd "$srcdir"
unzip "opengfx-$pkgver-all.zip"
tar xf opengfx-$pkgver.tar
}

package() {
install -Dm644 ./*.grf ./*.obg -t "$pkgdir"/usr/share/games/openttd/data
}

sha512sums="
93808f243ec527aebaf37df4cfb286879a981cc07e54d2b9790f2e9c4162a961a5a0cc2802af8deb0cbf3aab2713608ab93dae23f407e05cd2df9f3509a88253 opengfx-8.0-all.zip
"
34 changes: 34 additions & 0 deletions extra/openttd-openmsx/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Alpine Contributor: TBK <[email protected]>
# Alpine Maintainer: Thomas Kienlen <[email protected]>
# Maintainer: abdulahmoda <[email protected]>
pkgname=openttd-openmsx
pkgver=0.4.2
pkgrel=0
pkgdesc="Music Base Set for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
license="GPL-2.0-or-later"
options="!check" # No test suite
source="https://cdn.openttd.org/openmsx-releases/$pkgver/openmsx-$pkgver-all.zip"
builddir="$srcdir/openmsx-$pkgver"
install_if="openttd"

prepare() {
default_prepare

cd "$srcdir"
unzip "openmsx-$pkgver-all.zip"
tar xf openmsx-$pkgver.tar
}

package() {
local file
for file in *.mid openmsx.obm; do
install -D -m644 "$file" \
"$pkgdir"/usr/share/games/openttd/gm/"$file"
done
}

sha512sums="
6fdcec91ffcfa68ef367ff1733011a472caeb53f26fe07623ac510db80890789475919192317e6d5cddd6f3acea5bd58d8b174c23d506efcbd868392e418ed2f openmsx-0.4.2-all.zip
"
30 changes: 30 additions & 0 deletions extra/openttd-opensfx/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Alpine Contributor: Adrian Siekierka <[email protected]>
# Alpine Maintainer: Thomas Kienlen <[email protected]>
# Maintainer: abdulahmoda <[email protected]>
pkgname=openttd-opensfx
pkgver=1.0.3
pkgrel=0
pkgdesc="Free sound effect set for OpenTTD"
url="https://www.openttd.org/"
arch="noarch"
license="CC-BY-SA-3.0 GPL-2.0-or-later CDDL-1.1"
options="!check" # No test suite
source="https://cdn.openttd.org/opensfx-releases/$pkgver/opensfx-$pkgver-all.zip"
builddir="$srcdir/opensfx-$pkgver"
install_if="openttd"

prepare() {
default_prepare

cd "$srcdir"
unzip "opensfx-$pkgver-all.zip"
tar xf opensfx-$pkgver.tar
}

package() {
install -Dm644 ./*.cat ./*.obs -t "$pkgdir"/usr/share/games/openttd/data
}

sha512sums="
4a3f0d19efe97729a1918101b8cb59a01a84aae43e432d697c9ca9af38296e1de0665b705dba0b3a29b8b04df6629c98eb8690534c7e70566f573ce72cab30b0 opensfx-1.0.3-all.zip
"
73 changes: 73 additions & 0 deletions extra/openttd/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Alpine-Contributor: Adrian Siekierka <[email protected]>
# Apline-Maintainer: Thomas Kienlen <[email protected]>
# Maintainer: abdulahmoda <[email protected]>
pkgname=openttd
pkgver=15.2
pkgrel=0
pkgdesc="Open source version of the Transport Tycoon Deluxe simulator"
url="https://www.openttd.org"
arch="all"
license="GPL-2.0-or-later"
depends="
libcurl
harfbuzz
libpng
lzo
sdl2-compat
sdl2-compat-static
"
makedepends="
cmake
ninja
sdl2-compat-dev
curl-dev
fontconfig-dev
harfbuzz-dev
icu-dev
libpng-dev
xz-dev
zlib-dev
qnx-io-sock-dev
libc++-dev
"
subpackages="$pkgname-doc $pkgname-lang::noarch"
source="
$pkgname-$pkgver.tar.gz::https://github.com/qnx-ports/OpenTTD/archive/refs/tags/15.2.tar.gz
"
builddir="$srcdir/OpenTTD-$pkgver"

build() {
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=0" \
CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=0" \
cmake -B build \
-G Ninja \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DATADIR=share/games \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS -Wl,-z,stack-size=1048576" \
-DQNX=803
cmake --build build
}

check() {
cmake --build build --target openttd_test
./build/openttd_test
}

package() {
DESTDIR="$pkgdir" cmake --build build --target install
}

lang() {
pkgdesc="$pkgdesc (localizations)"

cd "$pkgdir"
mkdir -p "$subpkgdir"/usr/share/games/openttd/lang
find usr/share/games/openttd/lang/ ! -name 'english.lng' -type f \
-exec mv {} "$subpkgdir"/{} \;
}

sha512sums="
877cb818a41a0fab3adc1fe0e59a32f994d645081c98d2a90c452baed99652be2aaf131e775978c1622b77bcb10ceebba080bf1c1e6b47be7eacddb4fd97608a openttd-15.2.tar.gz
"