ladybird/Ports/dmidecode/package.sh
Linus Groh 7cb9237be9 Ports: Remove/replace hardcoded i686-pc-serenity-{gcc,g++,ar,ranlib}
Except in the Lua port's Makefile patch, I couldn't figure this out...
2021-03-13 13:13:03 +01:00

24 lines
940 B
Bash
Executable File

#!/usr/bin/env -S bash ../.port_include.sh
port=dmidecode
version=3.3
useconfigure=false
files="https://download.savannah.gnu.org/releases/dmidecode/dmidecode-${version}.tar.xz dmidecode-${version}.tar.xz
https://download.savannah.gnu.org/releases/dmidecode/dmidecode-${version}.tar.xz.sig dmidecode-${version}.tar.xz.sig
https://ftp.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
auth_type="sig"
auth_import_key="90DFD6523C57373D81F63D19865688D038F02FC8"
auth_opts="--keyring ./gnu-keyring.gpg dmidecode-${version}.tar.xz.sig"
install() {
run make clean
run make
}
post_install() {
mkdir -p "${SERENITY_BUILD_DIR}/Root/bin"
run make install-bin DESTDIR="${SERENITY_BUILD_DIR}/Root"
ln -s /usr/local/sbin/dmidecode "${SERENITY_BUILD_DIR}/Root/bin/dmidecode"
ln -s /usr/local/sbin/biosdecode "${SERENITY_BUILD_DIR}/Root/bin/biosdecode"
ln -s /usr/local/sbin/vpddecode "${SERENITY_BUILD_DIR}/Root/bin/vpddecode"
}