summaryrefslogtreecommitdiff
path: root/repo/sed/sed.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
committerdavidovski <david@davidovski.xyz>2022-06-03 13:05:13 +0100
commit66c326b6d65388e9f1003715ad9675505f01f9d2 (patch)
tree40d7355cccfa3464902cf339a563e744c28a7101 /repo/sed/sed.xibuild
parentfccdaa986f67f820df2914bef851d5fed77abac8 (diff)
added porting from alpine linux
Diffstat (limited to 'repo/sed/sed.xibuild')
-rw-r--r--repo/sed/sed.xibuild42
1 files changed, 32 insertions, 10 deletions
diff --git a/repo/sed/sed.xibuild b/repo/sed/sed.xibuild
index ddb7102..af15b44 100644
--- a/repo/sed/sed.xibuild
+++ b/repo/sed/sed.xibuild
@@ -1,17 +1,39 @@
#!/bin/sh
-MAKEDEPS="make sort"
-DEPS="musl acl attr"
+NAME="sed"
+DESC="GNU stream editor"
-PKG_VER=0.8.6
-SOURCE=http://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz
-DESC="stream editor from toybox"
+MAKEDEPS=" perl"
-build () {
- ./configure
- make sed
+PKG_VER=4.8
+#SOURCE="https://ftp.gnu.org/pub/gnu/sed/sed-$PKG_VER.tar.xz"
+SOURCE="https://ftp.heanet.ie/mirrors/ftp.gnu.org/gnu/sed/sed-$PKG_VER.tar.xz"
+
+ADDITIONAL="
+sed.post-deinstall
+"
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --bindir=/bin \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-i18n \
+ --disable-nls
+ make
+}
+
+check() {
+ make check
}
-package () {
- install -Dm755 sed $PKG_DEST/usr/bin/
+package() {
+ make DESTDIR="$PKG_DEST" install
+
+ rm -rf "$PKG_DEST"/usr/lib/charset.alias || true
+ rmdir -p "$PKG_DEST"/usr/lib 2>/dev/null || true
}
+