diff --git a/disabled-packages/abuild/abuild.conf.patch b/disabled-packages/abuild/abuild.conf.patch new file mode 100644 index 000000000..bd47b1670 --- /dev/null +++ b/disabled-packages/abuild/abuild.conf.patch @@ -0,0 +1,18 @@ +diff -uNr abuild-3.2.0/abuild.conf abuild-3.2.0.mod/abuild.conf +--- abuild-3.2.0/abuild.conf 2018-06-22 10:24:10.000000000 +0300 ++++ abuild-3.2.0.mod/abuild.conf 2018-11-18 16:42:45.897130881 +0200 +@@ -1,4 +1,4 @@ +-export CFLAGS="-Os -fomit-frame-pointer" ++export CFLAGS="-Os" + export CXXFLAGS="$CFLAGS" + export CPPFLAGS="$CFLAGS" + export LDFLAGS="-Wl,--as-needed" +@@ -9,7 +9,7 @@ + # remove line below to disable colors + USE_COLORS=1 + +-SRCDEST=/var/cache/distfiles ++SRCDEST=@TERMUX_PREFIX@/var/cache/distfiles + + # uncomment line below to store built packages in other location + # The package will be stored as $REPODEST/$repo/$pkgname-$pkgver-r$pkgrel.apk diff --git a/disabled-packages/abuild/build.sh b/disabled-packages/abuild/build.sh index 0f9d5289e..cfe85c01f 100644 --- a/disabled-packages/abuild/build.sh +++ b/disabled-packages/abuild/build.sh @@ -6,6 +6,7 @@ TERMUX_PKG_SRCURL=https://github.com/alpinelinux/abuild/archive/v$TERMUX_PKG_VER TERMUX_PKG_DEPENDS="openssl" TERMUX_PKG_BUILD_IN_SRC=yes TERMUX_PKG_EXTRA_MAKE_ARGS="sysconfdir=$TERMUX_PREFIX/etc" +TERMUX_PKG_CONFFILES="etc/abuild.conf" TERMUX_PKG_RM_AFTER_INSTALL=" bin/abuild-adduser @@ -14,3 +15,7 @@ bin/abuild-apk bin/abuild-sudo bin/buildlab " + +termux_step_post_make_install() { + install -Dm600 "$TERMUX_PKG_SRCDIR/abuild.conf" "$TERMUX_PREFIX/etc/abuild.conf" +}