jobcore/efivar/PKGBUILD-arch

61 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
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=1
2022-03-20 13:19:37 +01:00
arch=(x86_64)
url="https://github.com/rhboot/efivar"
2024-02-01 12:34:00 +01:00
license=(LGPL-2.1-or-later)
2022-03-20 13:19:37 +01:00
depends=(glibc)
2024-02-01 12:34:00 +01:00
makedepends=(
git
mandoc
)
2022-03-20 13:19:37 +01:00
checkdepends=(grub)
2024-02-01 12:34:00 +01:00
provides=(
libefiboot.so
libefisec.so
libefivar.so
)
2022-03-20 13:19:37 +01:00
source=(
2024-02-01 12:34:00 +01:00
"git+$url#tag=$_commit?signed"
2022-03-20 13:19:37 +01:00
)
2024-02-01 12:34:00 +01:00
sha512sums=('SKIP')
b2sums=('SKIP')
2022-03-20 13:19:37 +01:00
validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
2024-02-01 12:34:00 +01:00
pkgver() {
cd $pkgname
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
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() {
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() {
local make_options=(
V=1
DESTDIR="$pkgdir/"
libdir=/usr/lib/
bindir=/usr/bin/
mandir=/usr/share/man/
includedir=/usr/include/
install
-j1
-C $pkgname
)
make "${make_options[@]}"
install -vDm 644 $pkgname/{README.md,TODO} -t "$pkgdir/usr/share/doc/$pkgname/"
2022-03-20 13:19:37 +01:00
}