ladybird/Ports/libiconv/package.sh

18 lines
752 B
Bash
Raw Normal View History

2021-01-22 19:44:05 +03:00
#!/usr/bin/env -S bash ../.port_include.sh
2019-10-06 13:11:16 +03:00
port=libiconv
version=1.16
useconfigure=true
configopts=--enable-shared
files="https://ftp.gnu.org/pub/gnu/libiconv/libiconv-${version}.tar.gz libiconv-${version}.tar.gz
https://ftp.gnu.org/gnu/libiconv/libiconv-${version}.tar.gz.sig libiconv-${version}.tar.gz.sig
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
auth_type="sig"
auth_opts="--keyring ./gnu-keyring.gpg libiconv-${version}.tar.gz.sig"
install() {
run make DESTDIR=$DESTDIR $installopts install
run ${SERENITY_ARCH}-pc-serenity-gcc -shared -o $DESTDIR/usr/local/lib/libiconv.so -Wl,--whole-archive $DESTDIR/usr/local/lib/libiconv.a -Wl,--no-whole-archive
run ln -sf ../local/lib/libiconv.so $DESTDIR/usr/lib/libiconv.so
}