summaryrefslogtreecommitdiffstats
path: root/main/sed/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/sed/APKBUILD')
-rw-r--r--main/sed/APKBUILD9
1 files changed, 9 insertions, 0 deletions
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"