summaryrefslogtreecommitdiff
path: root/repo/util/sort.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-04-20 22:40:49 +0000
committerdavidovski <david@davidovski.xyz>2022-04-20 22:40:49 +0000
commit1084afc3c4d9c83e61620de60ba59a4393a33cb0 (patch)
tree17b2e37df0f1d61a83566fda5f707faffab54628 /repo/util/sort.xibuild
parentc35d083dc525e223b085ec00e6863ea6eafb003c (diff)
fixed create to work within env
Diffstat (limited to 'repo/util/sort.xibuild')
-rw-r--r--repo/util/sort.xibuild22
1 files changed, 22 insertions, 0 deletions
diff --git a/repo/util/sort.xibuild b/repo/util/sort.xibuild
new file mode 100644
index 0000000..5310d1b
--- /dev/null
+++ b/repo/util/sort.xibuild
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+MAKEDEPS="make sort"
+DEPS="musl sh"
+
+PKG_VER=0.8.6
+SOURCE=http://landley.net/toybox/downloads/toybox-$PKG_VER.tar.gz
+DESC="Sort from toybox"
+
+prepare () {
+ # remove the -s sort flag missing from sbase
+ sed -i "s/sort -s/sort/g" scripts/*.sh
+}
+
+build () {
+ ./configure
+ make sort
+}
+
+package () {
+ install -Dm755 sort $PKG_DEST/usr/bin/
+}