summaryrefslogtreecommitdiffstats
path: root/main/patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-07-30 08:51:11 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-07-30 08:54:53 +0000
commit5c904717322f8113870abf48cc93c3c8b00ab4e8 (patch)
treee077e5c3afa20630fd6e96db5872f03d622d639e /main/patch
parenta879839450737e3cbdb64415af42347c97ccfa28 (diff)
downloadaports-5c904717322f8113870abf48cc93c3c8b00ab4e8.tar.bz2
aports-5c904717322f8113870abf48cc93c3c8b00ab4e8.tar.xz
[all autotools packages]: normalize ./configure
Diffstat (limited to 'main/patch')
-rw-r--r--main/patch/APKBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/main/patch/APKBUILD b/main/patch/APKBUILD
index 4091c3e66..fa8f5e047 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"