56 lines
1.4 KiB
Bash
56 lines
1.4 KiB
Bash
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
|
|
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
|
|
# Contributor: Stefano Facchini <stefano.facchini@gmail.com>
|
|
|
|
pkgname=libosinfo
|
|
pkgver=1.12.0
|
|
pkgrel=1
|
|
pkgdesc='GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support'
|
|
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
|
|
url='https://libosinfo.org/'
|
|
license=('GPL-2.0-or-later AND LGPL-2.1-or-later')
|
|
depends=(
|
|
gcc-libs
|
|
glib2
|
|
glibc
|
|
hwdata
|
|
libsoup3
|
|
libxml2
|
|
libxslt
|
|
osinfo-db
|
|
)
|
|
makedepends=(
|
|
git
|
|
glib2-devel
|
|
gobject-introspection
|
|
meson
|
|
vala
|
|
)
|
|
source=("git+https://gitlab.com/libosinfo/$pkgname.git?signed#tag=v$pkgver")
|
|
b2sums=(7603532c78acad31d1096467eea64b6eaff29120109af9dd6bce05c8e6330df1dcf2460ffdb53c81e38a70711089106a4c383e18b31b2cd198445cf93f904b3c)
|
|
validpgpkeys=(
|
|
DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF # Daniel P. Berrange
|
|
09B9C8FF223EF113AFA06A39EE926C2BDACC177B # Fabiano Fidêncio
|
|
206D3B352F566F3B0E6572E997D9123DE37A484F # Victor Toso de Carvalho <me@victortoso.com>
|
|
)
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
sed -i 's/-Werror//' meson.build
|
|
}
|
|
|
|
build() {
|
|
arch-meson $pkgname build \
|
|
-D with-usb-ids-path=/usr/share/hwdata/usb.ids \
|
|
-D with-pci-ids-path=/usr/share/hwdata/pci.ids
|
|
meson compile -C build
|
|
}
|
|
|
|
check() {
|
|
meson test -C build --print-errorlogs
|
|
}
|
|
|
|
package() {
|
|
meson install -C build --destdir "$pkgdir"
|
|
}
|