summaryrefslogtreecommitdiff
path: root/Ports/pv/package.sh
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2021-11-14 09:39:40 -0800
committerLinus Groh <mail@linusgroh.de>2021-11-14 16:18:45 +0000
commit2c4db837e799878de95ee830c015aaeaed6a8c85 (patch)
tree696ba7bc5c2e40cdba6bb1352e87ca1b7b4dbed3 /Ports/pv/package.sh
parentd1806d44fae73758fead2dba183b4d9602a8f315 (diff)
downloadserenity-2c4db837e799878de95ee830c015aaeaed6a8c85.zip
Ports: Add initial Pipe Viewer (pv) 1.6.20 port
Diffstat (limited to 'Ports/pv/package.sh')
-rwxr-xr-xPorts/pv/package.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/Ports/pv/package.sh b/Ports/pv/package.sh
new file mode 100755
index 0000000000..b87bd2d253
--- /dev/null
+++ b/Ports/pv/package.sh
@@ -0,0 +1,16 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=pv
+version=1.6.20
+useconfigure=true
+configopts=("--disable-nls")
+files="http://www.ivarch.com/programs/sources/pv-${version}.tar.bz2 pv-${version}.tar.bz2 e831951eff0718fba9b1ef286128773b9d0e723e1fbfae88d5a3188814fdc603"
+auth_type=sha256
+
+export CFLAGS=-Wno-deprecated-declarations
+
+# Map LD to the serenity Toolchain, otherwise the host LD is used.
+if [ "$SERENITY_TOOLCHAIN" = "Clang" ]; then
+ export LD=$(CC)
+else
+ export LD="${SERENITY_ARCH}-pc-serenity-ld"
+fi