1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-30 06:57:45 +00:00

Ports: Add xz port

This commit is contained in:
Gunnar Beutner 2021-04-19 16:24:37 +02:00 committed by Linus Groh
parent bd08f9188a
commit 8388e822cb
3 changed files with 26 additions and 0 deletions

13
Ports/xz/package.sh Executable file
View file

@ -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
}