aboutsummaryrefslogtreecommitdiff
path: root/extra/pax/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2020-09-02 00:55:31 +0300
committerCem Keylan <cem@ckyln.com>2020-09-02 00:55:31 +0300
commit9488ae000c80fa0194a93e84b479837bba8f3750 (patch)
tree1e234466ac6fbc65b56ea83ede784234400882ef /extra/pax/build
parent004087f356ca47d6081109019ed8e315eff5fa2c (diff)
downloadrepository-9488ae000c80fa0194a93e84b479837bba8f3750.tar.gz
pax: add new package at 20190825
Diffstat (limited to 'extra/pax/build')
-rwxr-xr-xextra/pax/build18
1 files changed, 18 insertions, 0 deletions
diff --git a/extra/pax/build b/extra/pax/build
new file mode 100755
index 00000000..7abd26f0
--- /dev/null
+++ b/extra/pax/build
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+sed -i '1i#include <sys/types.h>' pax.h
+
+TARGET_OS=Linux \
+CC="${CC:-cc}" \
+CFLAGS="$CFLAGS -DGNU_SOURCE" \
+LDFLAGS="$LDFLAGS -static" \
+LIBS=-lfts \
+ sh ./Build.sh -r
+
+install -Dm755 pax "$1/usr/bin/pax"
+ln -sf pax "$1/usr/bin/paxtar"
+ln -sf pax "$1/usr/bin/paxcpio"
+
+install -Dm644 pax.1 "$1/usr/share/man/man1/pax.1"
+install -Dm644 tar.1 "$1/usr/share/man/man1/paxtar.1"
+install -Dm644 cpio.1 "$1/usr/share/man/man1/paxcpio.1"