aboutsummaryrefslogblamecommitdiffstats
path: root/community/libosinfo/APKBUILD
blob: e100c058b7bb76450d110279888ac2cbc3e75dba (plain) (tree)
1
2
3
4
5
6
7
8
9
                                             

                                                   
            
        
                                                                
                            
          
                           
                         









                                 
                                                     

                                                                                            



                      
 
         
                      






                                                               
                                                   


         
                                            


           
                                                              

 
                                                                                                                                                                      
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libosinfo
pkgver=1.9.0
pkgrel=1
pkgdesc="library for managing OS information for virtualization"
url="https://libosinfo.org/"
arch="all"
license="LGPL-2.0-or-later"
depends="hwids osinfo-db"
makedepends="
	meson
	glib-dev
	libsoup-dev
	libxml2-dev
	libxslt-dev
	gobject-introspection-dev
	vala
	perl
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://gitlab.com/libosinfo/libosinfo/-/archive/v$pkgver/libosinfo-v$pkgver.tar.gz"
builddir="$srcdir/libosinfo-v$pkgver"

# secfixes:
#   1.5.0-r1:
#     - CVE-2019-13313

build() {
	abuild-meson \
		-Denable-gtk-doc=false \
		-Denable-introspection=enabled \
		-Denable-tests=true \
		-Denable-vala=enabled \
		-Dwith-pci-ids-path=/usr/share/hwdata/pci.ids \
		-Dwith-usb-ids-path=/usr/share/hwdata/usb.ids \
		. output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="9f95de930fc9b6f22afc2a70a43034c3cb017fe9d233e5c0fafd82553a9085c889c1a8f7443e7094ffe9b5484d8bd2c4f5cd29a2d55be78e42eb8c1f91b13985  libosinfo-v1.9.0.tar.gz"