2018-11-29 13:00:47 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://powdertoy.co.uk/
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="The Powder Toy is a free physics sandbox game"
|
2019-01-21 17:50:21 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-3.0"
|
2020-05-14 00:01:15 +02:00
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
|
2020-03-08 19:15:17 +01:00
|
|
|
TERMUX_PKG_VERSION=95.0
|
2021-03-01 11:26:06 +01:00
|
|
|
TERMUX_PKG_REVISION=14
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/ThePowderToy/The-Powder-Toy/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
2020-03-08 19:15:17 +01:00
|
|
|
TERMUX_PKG_SHA256=f60c3dc93e4ceddeda92b768e75a2d218f8df3da4a569b7d7cb57fff5515e15b
|
2020-03-08 19:43:50 +01:00
|
|
|
TERMUX_PKG_DEPENDS="fftw, libbz2, libc++, libcurl, liblua52, sdl2, libx11, zlib"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_FOLDERNAME=The-Powder-Toy-${TERMUX_PKG_VERSION}
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
|
2018-10-04 23:23:39 +02:00
|
|
|
termux_step_make() {
|
2019-01-21 17:50:21 +01:00
|
|
|
export CFLAGS="${CFLAGS} -I${TERMUX_PREFIX}/include"
|
|
|
|
export CXXFLAGS="${CFLAGS}"
|
2019-04-13 00:44:53 +02:00
|
|
|
export LINKFLAGS="${LDFLAGS}"
|
2019-01-21 17:50:21 +01:00
|
|
|
scons -j4 --lin --64bit --no-sse --lua52
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|
|
|
|
|
2018-10-04 23:23:39 +02:00
|
|
|
termux_step_make_install() {
|
2019-01-21 17:50:21 +01:00
|
|
|
install -Dm755 "${TERMUX_PKG_SRCDIR}/build/powder64-legacy" "${TERMUX_PREFIX}/bin/the-powder-toy"
|
|
|
|
ln -sfr "${TERMUX_PREFIX}/bin/the-powder-toy" "${TERMUX_PREFIX}/bin/powder"
|
|
|
|
${TERMUX_ELF_CLEANER} "${TERMUX_PREFIX}/bin/the-powder-toy"
|
2018-09-10 00:42:26 +02:00
|
|
|
}
|