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"
|
|
|
|
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
|
2018-09-10 00:42:26 +02:00
|
|
|
TERMUX_PKG_VERSION=93.3
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_REVISION=5
|
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
|
fix names for more packages
Now x11-packages repository will use original names for
packages. For example, libgtk2 now will be provided as
gtk2, libgtk3 will be available as gtk3, libsdl - as sdl.
List of changed packages:
libatk --> atk
libglu --> glu
libgtk2 --> gtk2
libgtk3 --> gtk3
libmesa --> mesa
libsdl --> sdl
libsdl2 --> sdl2
libsdl-net --> sdl-net
riscvemu-sdl --> riscvemu
xorg-xvfb --> xorg-server-xvfb
List of dependent packages (should be rebuilt with new deps):
dosbox, emacs-x, galculator, geany, libepoxy, mtpaint,
qemu-system-x86_64, the-powder-toy, tigervnc, wireshark-gtk,
xarchiver.
Note: depending on which packages are installed, it may be
necessary to upgrade with 'apt dist-upgrade'.
2018-10-03 20:02:25 +02:00
|
|
|
TERMUX_PKG_DEPENDS="fftw, libbz2, libc++, liblua52, sdl, libx11"
|
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}"
|
|
|
|
export LDFLAGS="-L${TERMUX_PREFIX}/lib"
|
|
|
|
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
|
|
|
}
|