summaryrefslogtreecommitdiffstats
path: root/main/gzip/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gzip/APKBUILD')
-rw-r--r--main/gzip/APKBUILD11
1 files changed, 9 insertions, 2 deletions
diff --git a/main/gzip/APKBUILD b/main/gzip/APKBUILD
index fec3177a3..b1b062c06 100644
--- a/main/gzip/APKBUILD
+++ b/main/gzip/APKBUILD
@@ -19,9 +19,13 @@ build() {
# avoid text relocation
export DEFS="NO_ASM"
- ./configure --prefix=/usr \
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
--mandir=/usr/share/man \
- --infodir=/usr/share/info
+ --infodir=/usr/share/info \
+ || return 1
make || return 1
}
@@ -29,6 +33,9 @@ package() {
cd "$_builddir"
make DESTDIR=$pkgdir install
+ rm -rf "$pkgdir"/usr/lib/charset.alias
+ rmdir -p "$pkgdir"/usr/lib 2>/dev/null
+
mkdir -p "$pkgdir"/bin
mv "$pkgdir"/usr/bin/gzip "$pkgdir"/usr/bin/gunzip "$pkgdir"/bin/
ln -s /bin/gzip "$pkgdir"/usr/bin/gzip