Browse Source

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

File is required for 'abuild' configuration.
android-5
Leonid Plyushch 6 years ago
committed by Fredrik Fornwall
parent
commit
29f869c504
  1. 18
      disabled-packages/abuild/abuild.conf.patch
  2. 5
      disabled-packages/abuild/build.sh

18
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

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

Loading…
Cancel
Save