aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/sed/APKBUILD12
-rw-r--r--main/sed/sed.post-deinstall4
2 files changed, 7 insertions, 9 deletions
diff --git a/main/sed/APKBUILD b/main/sed/APKBUILD
index 1fb8bdc389..6f78d927e5 100644
--- a/main/sed/APKBUILD
+++ b/main/sed/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sed
pkgver=4.4
-pkgrel=0
+pkgrel=1
subpackages="$pkgname-doc"
pkgdesc="GNU stream editor"
url="http://www.gnu.org/software/sed"
@@ -23,18 +23,16 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-i18n \
- --disable-nls \
- || return 1
- make || return 1
+ --disable-nls
+ make
}
package() {
cd "$builddir"
- make DESTDIR="$pkgdir" install \
- || return 1
+ make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/lib/charset.alias
- rmdir -p "$pkgdir"/usr/lib 2>/dev/null || true
+ rmdir -p "$pkgdir"/usr/lib 2>/dev/null
}
sha512sums="4e1b0a7403913f1e25047eb2292a0a9b3488b15b4463ce2803e05eaecbc2da19f477a18e6a70c992461c38ced90774415091aa2d8ce85cb74e391610d9eedb70 sed-4.4.tar.xz"
diff --git a/main/sed/sed.post-deinstall b/main/sed/sed.post-deinstall
index 81dde1ec59..5ec0031a45 100644
--- a/main/sed/sed.post-deinstall
+++ b/main/sed/sed.post-deinstall
@@ -1,6 +1,6 @@
#!/bin/sh
-# we cannot rely on the busbox trigger since sed might be used from install
+# we cannot rely on the busybox trigger since sed might be used from install
# scripts
-exec /bin/busybox --install -s
+[ -x /bin/busybox ] && exec /bin/busybox --install -s