2019-06-30 00:08:05 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://dev.openttdcoop.org/projects/opengfx
|
|
|
|
TERMUX_PKG_DESCRIPTION="A free graphics set for openttd"
|
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-05-14 00:01:15 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2019-06-30 00:08:05 +02:00
|
|
|
TERMUX_PKG_VERSION=0.5.5
|
2020-06-01 23:59:34 +02:00
|
|
|
TERMUX_PKG_REVISION=13
|
2019-06-30 00:08:05 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://bundles.openttdcoop.org/opengfx/releases/$TERMUX_PKG_VERSION/opengfx-$TERMUX_PKG_VERSION.zip
|
|
|
|
TERMUX_PKG_SHA256=c648d56c41641f04e48873d83f13f089135909cc55342a91ed27c5c1683f0dfe
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
|
|
|
|
|
|
termux_step_extract_package() {
|
|
|
|
termux_download \
|
|
|
|
"$TERMUX_PKG_SRCURL" \
|
|
|
|
"$TERMUX_PKG_CACHEDIR/opengfx-$TERMUX_PKG_VERSION.zip" \
|
|
|
|
"$TERMUX_PKG_SHA256"
|
|
|
|
unzip -d "$TERMUX_PKG_SRCDIR" "$TERMUX_PKG_CACHEDIR/opengfx-$TERMUX_PKG_VERSION.zip"
|
|
|
|
|
|
|
|
cd "$TERMUX_PKG_SRCDIR"
|
|
|
|
tar xf "opengfx-$TERMUX_PKG_VERSION.tar"
|
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_make_install() {
|
|
|
|
cd "opengfx-$TERMUX_PKG_VERSION"
|
|
|
|
install -d "$TERMUX_PREFIX"/share/openttd/data
|
|
|
|
install -m600 *.grf "$TERMUX_PREFIX"/share/openttd/data
|
|
|
|
install -m600 *.obg "$TERMUX_PREFIX"/share/openttd/data
|
|
|
|
}
|