aboutsummaryrefslogtreecommitdiffstats
path: root/main/patch/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/patch/APKBUILD')
-rw-r--r--main/patch/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD
index 4091c3e66b..fa8f5e0478 100644
--- a/main/patch/APKBUILD
+++ b/main/patch/APKBUILD
@@ -15,16 +15,21 @@ _builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$_builddir"
- ./configure --prefix=/usr \
- --build=${CBUILD} \
- --host=${CHOST} \
- --mandir=/usr/share/man
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ || return 1
make || return 1
}
package() {
cd "$_builddir"
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
+ rm -rf "$pkgdir"/usr/lib/charset.alias
+ rmdir -p "$pkgdir"/usr/lib 2>/dev/null
+ return 0
}
md5sums="0881a7c6477862fc395f373ada0ec6b6 patch-2.7.1.tar.bz2"