1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-18 15:37:06 +00:00
termux-packages/packages/termux-elf-cleaner/build.sh
Henrik Grimler 803ae15df9
fix(main/termux-elf-cleaner): set default api-level to $TERMUX_PKG_API_LEVEL
So that users do not have to specify --api-level 24 or similar when
using the tool on-device.

Reported in termux/termux-packages#11612.
2022-08-29 11:22:37 +02:00

19 lines
714 B
Bash

TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-elf-cleaner
TERMUX_PKG_DESCRIPTION="Cleaner of ELF files for Android"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
# Please update checksum in termux_step_start_build.sh as well if
# updating the package.
TERMUX_PKG_VERSION=2.1.1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/termux/termux-elf-cleaner/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=104231f91ef6662f80694fc4a59c6bfeae50da21c4fc22adac3c9a5aac00ba98
TERMUX_PKG_DEPENDS="libc++"
termux_step_pre_configure() {
autoreconf -vfi
sed "s%@TERMUX_PKG_API_LEVEL@%$TERMUX_PKG_API_LEVEL%g" \
"$TERMUX_PKG_BUILDER_DIR"/android-api-level.diff | patch --silent -p1
}