From 0a10d7d6200569aecdd07564ae57b6431657dc6f Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 1 May 2023 16:38:29 -0700 Subject: [PATCH] Added some stuff --- arch/coreboot-configurator/.gitignore | 3 +++ arch/coreboot-configurator/PKGBUILD | 31 +++++++++++++++++++++++++++ arch/license-tool/.gitignore | 3 +++ arch/license-tool/PKGBUILD | 29 +++++++++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 arch/coreboot-configurator/.gitignore create mode 100644 arch/coreboot-configurator/PKGBUILD create mode 100644 arch/license-tool/.gitignore create mode 100644 arch/license-tool/PKGBUILD diff --git a/arch/coreboot-configurator/.gitignore b/arch/coreboot-configurator/.gitignore new file mode 100644 index 0000000..bbe75a6 --- /dev/null +++ b/arch/coreboot-configurator/.gitignore @@ -0,0 +1,3 @@ +pkg +src +coreboot-configurator* diff --git a/arch/coreboot-configurator/PKGBUILD b/arch/coreboot-configurator/PKGBUILD new file mode 100644 index 0000000..ff03e15 --- /dev/null +++ b/arch/coreboot-configurator/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Alexander Rosenberg + +pkgname=coreboot-configurator +pkgver=51 +pkgrel=1 +pkgdesc="A simple GUI to change settings in coreboot's CBFS, via the nvramtool utility." +url='https://github.com/StarLabsLtd/coreboot-configurator' +arch=('x86_64') +license=('GPL2') +depends=('coreboot-utils-git' 'yaml-cpp' 'meson' 'qt5-base' 'ninja') +source=('git+https://github.com/StarLabsLtd/coreboot-configurator.git') +sha256sums=('SKIP') + +pkgver(){ + cd "$pkgname" + git rev-list --count HEAD +} + +build() { + cd "$pkgname" + + meson setup build/ + ninja -C build all +} + +package() { + cd "$pkgname" + + export DESTDIR="$pkgdir" + ninja -C build install +} diff --git a/arch/license-tool/.gitignore b/arch/license-tool/.gitignore new file mode 100644 index 0000000..eb1901f --- /dev/null +++ b/arch/license-tool/.gitignore @@ -0,0 +1,3 @@ +pkg +src +license-tool* diff --git a/arch/license-tool/PKGBUILD b/arch/license-tool/PKGBUILD new file mode 100644 index 0000000..966f11b --- /dev/null +++ b/arch/license-tool/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Alexander Rosenberg + +pkgname='license-tool' +pkgver=5 +pkgrel=1 +pkgdesc='A simple tool for creating LICENSE files' +url='https://git.zander.im/Zander671/license-tool' +arch=('x86_64') +license=('GPL3') +depends=('rust') +source=('git+https://git.zander.im/Zander671/license-tool.git') +sha256sums=('SKIP') + +pkgver(){ + cd "$pkgname" + git rev-list --count HEAD +} + +build() { + cd "$pkgname" + export GLOBAL_DATA_PATH='/usr/share/license-tool/' + cargo build --release +} + +package() { + install -Dt "$pkgdir/usr/bin/" "$pkgname/target/release/license-tool" + mkdir -p "$pkgdir/usr/share/" + cp -r "$pkgname/licenses" "$pkgdir/usr/share/license-tool" +}