summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/acl/APKBUILD1
-rw-r--r--main/autoconf/APKBUILD1
-rw-r--r--main/bash/APKBUILD1
-rw-r--r--main/expat/APKBUILD1
-rw-r--r--main/flex/APKBUILD5
-rw-r--r--main/gawk/APKBUILD9
-rw-r--r--main/gdb/APKBUILD2
-rw-r--r--main/gdbm/APKBUILD1
-rw-r--r--main/libevent/APKBUILD5
-rw-r--r--main/libssh2/APKBUILD1
-rw-r--r--main/libtool/APKBUILD5
-rw-r--r--main/lua-bitlib/APKBUILD5
-rw-r--r--main/ncurses/APKBUILD5
-rw-r--r--main/popt/APKBUILD5
-rw-r--r--main/readline/APKBUILD1
-rw-r--r--main/rsync/APKBUILD1
-rw-r--r--main/sed/APKBUILD9
-rw-r--r--main/sqlite/APKBUILD1
-rw-r--r--main/tar/APKBUILD13
19 files changed, 65 insertions, 7 deletions
diff --git a/main/acl/APKBUILD b/main/acl/APKBUILD
index de8153af4..5b382c549 100644
--- a/main/acl/APKBUILD
+++ b/main/acl/APKBUILD
@@ -13,6 +13,7 @@ source="http://download.savannah.gnu.org/releases-noredirect/acl/acl-$pkgver.src
prepare() {
cd "$srcdir"/acl-$pkgver
+ update_config_sub || return 1
#libtoolize --force && aclocal -I m4 && autoconf && autoheader
sed -i \
-e '/^as_dummy=/s:=":="$PATH$PATH_SEPARATOR:' \
diff --git a/main/autoconf/APKBUILD b/main/autoconf/APKBUILD
index b29fadad0..7b7e90dee 100644
--- a/main/autoconf/APKBUILD
+++ b/main/autoconf/APKBUILD
@@ -13,6 +13,7 @@ subpackages="$pkgname-doc"
prepare() {
cd "$srcdir"/$pkgname-$pkgver
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch)
diff --git a/main/bash/APKBUILD b/main/bash/APKBUILD
index c0f7b3ff7..84e55c181 100644
--- a/main/bash/APKBUILD
+++ b/main/bash/APKBUILD
@@ -39,6 +39,7 @@ _builddir="$srcdir"/$pkgname-$_myver
prepare() {
local p
cd "$_builddir"
+ update_config_sub || return 1
for p in ../bash${_patchbase}-??? ../*.patch; do
msg "applying patch ${p##*/}"
patch -p0 -i $p || return 1
diff --git a/main/expat/APKBUILD b/main/expat/APKBUILD
index daf4313f6..d967dffd2 100644
--- a/main/expat/APKBUILD
+++ b/main/expat/APKBUILD
@@ -15,6 +15,7 @@ subpackages="$pkgname-dev $pkgname-doc"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
for i in "$srcdir"/*.patch; do
[ -f "$i" ] || continue
msg "Applying $i"
diff --git a/main/flex/APKBUILD b/main/flex/APKBUILD
index 669a70d8e..d06e87424 100644
--- a/main/flex/APKBUILD
+++ b/main/flex/APKBUILD
@@ -11,6 +11,11 @@ makedepends=m4
source="http://downloads.sourceforge.net/sourceforge/flex/flex-$pkgver.tar.bz2"
subpackages="$pkgname-doc"
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ update_config_sub || return 1
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
diff --git a/main/gawk/APKBUILD b/main/gawk/APKBUILD
index d82443615..84e8f4497 100644
--- a/main/gawk/APKBUILD
+++ b/main/gawk/APKBUILD
@@ -11,9 +11,14 @@ license="GPL"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"
-build() {
- cd "$srcdir/$pkgname-$pkgver"
+_builddir="$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+build() {
+ cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
diff --git a/main/gdb/APKBUILD b/main/gdb/APKBUILD
index b0130466c..f81428394 100644
--- a/main/gdb/APKBUILD
+++ b/main/gdb/APKBUILD
@@ -49,7 +49,7 @@ build () {
[ "$CBUILD" = "$CHOST" ] && _config="$_config --with-system-readline"
# gdb server does not compile with musl
- [ "${CHOST#*musl}" != "$CHOST" ] && _config="$_config --disable-gdbserver"
+ [ "$CTARGET_LIBC" = musl ] && _config="$_config --disable-gdbserver"
./configure $_config || return 1
(cd opcodes && ./configure $_config) || return 1
diff --git a/main/gdbm/APKBUILD b/main/gdbm/APKBUILD
index d6b820cd4..344a3a7f9 100644
--- a/main/gdbm/APKBUILD
+++ b/main/gdbm/APKBUILD
@@ -17,6 +17,7 @@ source="ftp://ftp.nluug.nl/pub/gnu/gdbm/gdbm-$pkgver.tar.gz
_builddir="$srcdir"/gdbm-$pkgver
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
diff --git a/main/libevent/APKBUILD b/main/libevent/APKBUILD
index f031f8cb3..b4a933d9b 100644
--- a/main/libevent/APKBUILD
+++ b/main/libevent/APKBUILD
@@ -13,6 +13,11 @@ subpackages="$pkgname-dev"
source="https://github.com/downloads/libevent/libevent/libevent-$pkgver-stable.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver-stable
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
cd "$_builddir"
./configure \
diff --git a/main/libssh2/APKBUILD b/main/libssh2/APKBUILD
index ca69b55a7..bbe3d29a7 100644
--- a/main/libssh2/APKBUILD
+++ b/main/libssh2/APKBUILD
@@ -18,6 +18,7 @@ _builddir="$srcdir"/libssh2-$pkgver
prepare() {
local i
cd "$_builddir"
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
diff --git a/main/libtool/APKBUILD b/main/libtool/APKBUILD
index d91cfe41d..b3cdf0a14 100644
--- a/main/libtool/APKBUILD
+++ b/main/libtool/APKBUILD
@@ -11,6 +11,11 @@ depends="bash libltdl"
subpackages="libltdl $pkgname-doc"
options="libtool"
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ update_config_sub || return 1
+}
+
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure \
diff --git a/main/lua-bitlib/APKBUILD b/main/lua-bitlib/APKBUILD
index 0c8fd5723..da6977fa1 100644
--- a/main/lua-bitlib/APKBUILD
+++ b/main/lua-bitlib/APKBUILD
@@ -15,6 +15,11 @@ replaces="bitlib"
_builddir="$srcdir"/$_name-$pkgver
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
build() {
cd "$_builddir"
./configure \
diff --git a/main/ncurses/APKBUILD b/main/ncurses/APKBUILD
index 341212dc3..fc599b8fc 100644
--- a/main/ncurses/APKBUILD
+++ b/main/ncurses/APKBUILD
@@ -11,6 +11,11 @@ source="ftp://ftp.gnu.org/pub/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz"
subpackages="$pkgname-dev $pkgname-doc $pkgname-base $pkgname-terminfo
$pkgname-widec-libs:widec $pkgname-libs"
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ update_config_sub || return 1
+}
+
build() {
local _confopts="
--build=$CBUILD
diff --git a/main/popt/APKBUILD b/main/popt/APKBUILD
index e5d902c44..3263cb74e 100644
--- a/main/popt/APKBUILD
+++ b/main/popt/APKBUILD
@@ -11,6 +11,11 @@ makedepends="!libiconv-dev"
source="http://rpm5.org/files/$pkgname/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc $pkgname-dev"
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ update_config_sub || return 1
+}
+
build() {
cd "$srcdir"/$pkgname-$pkgver
./configure \
diff --git a/main/readline/APKBUILD b/main/readline/APKBUILD
index 12fa5501b..7625fee8b 100644
--- a/main/readline/APKBUILD
+++ b/main/readline/APKBUILD
@@ -25,6 +25,7 @@ done
_builddir="$srcdir"/$pkgname-$_myver
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
for i in "$srcdir"/readline$_suff-???; do
[ -r "$i" ] || continue
msg "Applying ${i##*/}"
diff --git a/main/rsync/APKBUILD b/main/rsync/APKBUILD
index 858a7f601..c5e76730c 100644
--- a/main/rsync/APKBUILD
+++ b/main/rsync/APKBUILD
@@ -21,6 +21,7 @@ _builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
./prepare-source || return 1
+ update_config_sub || return 1
}
build() {
diff --git a/main/sed/APKBUILD b/main/sed/APKBUILD
index f2e2b1422..4043b13fd 100644
--- a/main/sed/APKBUILD
+++ b/main/sed/APKBUILD
@@ -12,6 +12,11 @@ makedepends=""
install="$pkgname.post-deinstall"
source="ftp://ftp.gnu.org/pub/gnu/$pkgname/$pkgname-$pkgver.tar.gz"
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ update_config_sub || return 1
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
@@ -30,6 +35,10 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
+
+ rm -rf "$pkgdir"/usr/lib/charset.alias
+ rmdir -p "$pkgdir"/usr/lib 2>/dev/null
+ return 0
}
md5sums="4111de4faa3b9848a0686b2f260c5056 sed-4.2.2.tar.gz"
diff --git a/main/sqlite/APKBUILD b/main/sqlite/APKBUILD
index 169f729c8..4dc412e7c 100644
--- a/main/sqlite/APKBUILD
+++ b/main/sqlite/APKBUILD
@@ -31,6 +31,7 @@ subpackages="$pkgname-doc $pkgname-dev $pkgname-libs"
_builddir="$srcdir"/$pkgname-autoconf-$_ver
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
}
build() {
diff --git a/main/tar/APKBUILD b/main/tar/APKBUILD
index a9f28dbe2..1709173a2 100644
--- a/main/tar/APKBUILD
+++ b/main/tar/APKBUILD
@@ -13,10 +13,11 @@ source="ftp://ftp.gnu.org/gnu/tar/$pkgname-$pkgver.tar.gz"
subpackages="$pkgname-doc"
prepare() {
- cd "$srcdir/$pkgname-$pkgver"
- # fix eglibc-2.16+ build issue
- sed -i -e '/gets is a/d' \
- gnu/stdio.in.h || return 1
+ cd "$srcdir/$pkgname-$pkgver"
+ update_config_sub || return 1
+ # fix eglibc-2.16+ build issue
+ sed -i -e '/gets is a/d' \
+ gnu/stdio.in.h || return 1
}
build() {
@@ -34,6 +35,10 @@ build() {
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
+
+ rm -rf "$pkgdir"/usr/lib/charset.alias
+ rmdir -p "$pkgdir"/usr/lib 2>/dev/null
+
mkdir "$pkgdir"/bin
mv "$pkgdir"/usr/bin/tar "$pkgdir"/bin/
ln -s /bin/tar "$pkgdir"/usr/bin/tar