summaryrefslogtreecommitdiff
path: root/Ports/xz/package.sh
diff options
context:
space:
mode:
authorGunnar Beutner <gunnar@beutner.name>2021-04-19 16:24:37 +0200
committerLinus Groh <mail@linusgroh.de>2021-04-19 17:55:35 +0200
commit8388e822cbf7f1dc4c026e6accc779f9357309db (patch)
treeceff4a9f8e6e5c503e3f2086383ae0410fbc0e5c /Ports/xz/package.sh
parentbd08f9188a60536221df2f00d58a4ff54bd0e753 (diff)
downloadserenity-8388e822cbf7f1dc4c026e6accc779f9357309db.zip
Ports: Add xz port
Diffstat (limited to 'Ports/xz/package.sh')
-rwxr-xr-xPorts/xz/package.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/Ports/xz/package.sh b/Ports/xz/package.sh
new file mode 100755
index 0000000000..7c27b25877
--- /dev/null
+++ b/Ports/xz/package.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=xz
+version=5.2.5
+useconfigure=true
+files="https://tukaani.org/xz/xz-${version}.tar.gz xz-${version}.tar.gz f6f4910fd033078738bd82bfba4f49219d03b17eb0794eb91efbae419f4aba10"
+auth_type=sha256
+depends="zlib libiconv"
+
+install() {
+ run make DESTDIR=$DESTDIR $installopts install
+ ${CC} -shared -o $DESTDIR/usr/local/lib/liblzma.so -Wl,--whole-archive $DESTDIR/usr/local/lib/liblzma.a -Wl,--no-whole-archive -lz -liconv
+ rm -f $DESTDIR/usr/local/lib/liblzma.la
+}