preload-hacks: Some patches to make it work.
[termux-packages] / packages / termux-elf-cleaner / build.sh
index ec65d3b..6528261 100644 (file)
@@ -1,7 +1,9 @@
-TERMUX_PKG_HOMEPAGE=https://termux.com/
+TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-elf-cleaner
 TERMUX_PKG_DESCRIPTION="Cleaner of ELF files for Android"
-TERMUX_PKG_VERSION=1.1
-
-termux_step_make_install () {
-       $CXX $CFLAGS $LDFLAGS -std=c++14 -Wall -Wextra -pedantic -Werror $TERMUX_PKG_BUILDER_DIR/*.cpp -o $TERMUX_PREFIX/bin/termux-elf-cleaner
-}
+# NOTE: The termux-elf-cleaner.cpp file is used by build-package.sh
+#       to create a native binary. Bumping this version will need
+#       updating the checksum used there.
+TERMUX_PKG_VERSION=1.2
+TERMUX_PKG_SRCURL=https://github.com/termux/termux-elf-cleaner/archive/v${TERMUX_PKG_VERSION}.tar.gz
+TERMUX_PKG_SHA256=956d35778bf40523543a98ecec79d7d895a08ac69da1018acb84658a1c94e82b
+TERMUX_PKG_BUILD_IN_SRC=yes