abuild: fix missing configuration file (/etc/abuild.conf)

File is required for 'abuild' configuration.
This commit is contained in:
Leonid Pliushch 2018-11-19 14:14:55 +02:00 committed by Fredrik Fornwall
parent d0216b11d7
commit 1a77ab931b
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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"
}