summaryrefslogtreecommitdiff
path: root/repo/util/sort.xibuild
blob: 5310d1bb1c7f78c29dac53fb7f8bb8092fae87c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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/
}