jobcore/efivar/PKGBUILD

64 lines
1.7 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=efivar
pkgdesc="Tools and libraries to work with EFI variables"
2024-02-01 12:34:00 +01:00
pkgver=39
_commit=a77a4ffec000ad5dfc5d6394d208784672acda82 # refs/tags/39
pkgrel=01
2022-03-20 13:19:37 +01:00
url="https://github.com/rhboot/efivar"
depends=(glibc)
makedepends=(git mandoc)
provides=(libefiboot.so libefisec.so libefivar.so)
options=(!lto)
2024-02-01 12:34:00 +01:00
source=("git+$url#tag=$_commit?signed")
pkgver() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
2022-03-20 13:19:37 +01:00
prepare() {
2024-02-01 12:34:00 +01:00
cd $pkgname
2022-03-20 13:19:37 +01:00
# fix issues with linker scripts: https://github.com/rhboot/efivar/pull/201
2024-02-01 12:34:00 +01:00
# patch -Np1 -d $pkgname -i ../$pkgname-38-ld_t.patch
2022-03-20 13:19:37 +01:00
}
build() {
# disable -Werror by default by setting ERRORS to empty string
2024-02-01 12:34:00 +01:00
make ERRORS='' all -C $pkgname
2022-03-20 13:19:37 +01:00
}
check() {
make GRUB_PREFIX=grub test -k -C "${pkgname}" || echo "grub related tests are flaky"
2024-02-01 12:34:00 +01:00
# make GRUB_PREFIX=grub test -k -j1 -C $pkgname
2022-03-20 13:19:37 +01:00
}
package() {
make DESTDIR="${pkgdir}/" \
libdir=/usr/lib/ \
bindir=/usr/bin/ \
mandir=/usr/share/man/ \
includedir=/usr/include/ \
install -j1 V=1 \
-C "${pkgname}"
install -vDm 644 "${pkgname}/"{README.md,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
2024-02-01 12:34:00 +01:00
license=(LGPL-2.1-or-later)
2022-03-20 13:19:37 +01:00
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
2024-02-01 12:34:00 +01:00
sha256sums=(SKIP)
2024-02-01 12:34:00 +01:00
## 4fe134bd4ae4dc9268b4d6187c6617f72b61f0b1d2c20b9ded2e5ba278db1ffd efivar-39-01-x86_64.pkg.tar.lz