mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
community/libosinfo: modernize and add check
This commit is contained in:
parent
ded35da9dd
commit
66a78f1b9d
@ -1,7 +1,7 @@
|
|||||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||||
pkgname=libosinfo
|
pkgname=libosinfo
|
||||||
pkgver=1.1.0
|
pkgver=1.1.0
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="A library for managing OS information for virtualization"
|
pkgdesc="A library for managing OS information for virtualization"
|
||||||
url="http://libosinfo.org/"
|
url="http://libosinfo.org/"
|
||||||
arch="all"
|
arch="all"
|
||||||
@ -12,7 +12,7 @@ makedepends="glib-dev libsoup-dev libxml2-dev libxslt-dev vala intltool
|
|||||||
subpackages="$pkgname-dev $pkgname-doc"
|
subpackages="$pkgname-dev $pkgname-doc"
|
||||||
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"
|
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"
|
||||||
|
|
||||||
builddir="$srcdir"/$pkgname-$pkgver
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
@ -27,14 +27,18 @@ build() {
|
|||||||
--enable-introspection=yes \
|
--enable-introspection=yes \
|
||||||
--enable-vala=yes \
|
--enable-vala=yes \
|
||||||
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
|
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
|
||||||
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
|
--with-pci-ids-path=/usr/share/hwdata/pci.ids
|
||||||
|| return 1
|
make
|
||||||
make || return 1
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$builddir"
|
||||||
|
make check
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
cd "$builddir"
|
||||||
make DESTDIR="$pkgdir" install || return 1
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="c4f9e67bb5538e31e7d2ed3d764547ba0a2263da5bbf4d1ef930a32d5953fab59abc672e5f86a1f7f5ac1ebd0c5195986193f699a6b0efbcb6769917c0ed7102 libosinfo-1.1.0.tar.gz"
|
sha512sums="c4f9e67bb5538e31e7d2ed3d764547ba0a2263da5bbf4d1ef930a32d5953fab59abc672e5f86a1f7f5ac1ebd0c5195986193f699a6b0efbcb6769917c0ed7102 libosinfo-1.1.0.tar.gz"
|
||||||
|
Loading…
Reference in New Issue
Block a user