azpainter: force apply LDFLAGS from environment variable

This commit is contained in:
Leonid Pliushch 2020-06-05 19:28:38 +03:00 committed by Yaksh Bariya
parent 3507887271
commit c3d900bc0d
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 2 additions and 2 deletions

View File

@ -3,16 +3,16 @@ TERMUX_PKG_DESCRIPTION="Full color painting software for Unix-like systems for i
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
TERMUX_PKG_VERSION=1:2.1.6
TERMUX_PKG_REVISION=5
TERMUX_PKG_REVISION=6
TERMUX_PKG_SRCURL=https://github.com/Symbian9/azpainter/releases/download/v${TERMUX_PKG_VERSION:2}/azpainter-${TERMUX_PKG_VERSION:2}.tar.xz
TERMUX_PKG_SHA256=85f3f935e76b420f2e5e272514368fdfbe4c25c01daa1e161ac28a6e1edb0d2c
TERMUX_PKG_DEPENDS="fontconfig, hicolor-icon-theme, libandroid-shmem, libjpeg-turbo, libxfixes, libxi"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
sed -i "s/LDFLAGS :=/LDFLAGS +=/" Makefile.in
./configure --prefix="$TERMUX_PREFIX" \
CC="$CC" \
CFLAGS="$CFLAGS" \
LDFLAGS="$LDFLAGS" \
LIBS="-landroid-shmem"
}