termux-packages/x11-packages/the-powder-toy/build.sh

27 lines
1.0 KiB
Bash
Raw Normal View History

2018-09-10 00:42:26 +02:00
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=http://powdertoy.co.uk/
TERMUX_PKG_DESCRIPTION="The Powder Toy is a free physics sandbox game"
TERMUX_PKG_VERSION=93.3
2018-09-12 19:04:04 +02:00
TERMUX_PKG_REVISION=3
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
TERMUX_PKG_SHA256=6c5f5914e4ae0ac8500c7203ec69517a2fd4380dece6b33247ed719aa12e074e
2018-09-12 19:04:04 +02:00
TERMUX_PKG_DEPENDS="fftw, libbz2, libc++, liblua52, libsdl, libx11"
2018-09-10 00:42:26 +02:00
TERMUX_PKG_FOLDERNAME=The-Powder-Toy-${TERMUX_PKG_VERSION}
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make()
{
export CFLAGS="${CFLAGS} -I${TERMUX_PREFIX}/include"
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="-L${TERMUX_PREFIX}/lib"
2018-09-12 19:04:04 +02:00
scons -j4 --lin --64bit --no-sse --lua52
2018-09-10 00:42:26 +02:00
}
termux_step_make_install()
{
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"
}