mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-04 00:02:17 +01:00
54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libosinfo
|
|
pkgver=0.3.0
|
|
pkgrel=0
|
|
pkgdesc="A library for managing OS information for virtualization"
|
|
url="http://libosinfo.org/"
|
|
arch="all"
|
|
license="LGPLv2+"
|
|
depends="hwdata"
|
|
depends_dev="glib-dev"
|
|
makedepends="$depends_dev libsoup-dev libxml2-dev libxslt-dev vala intltool
|
|
gobject-introspection-dev check-dev"
|
|
install=""
|
|
subpackages="$pkgname-dev $pkgname-doc"
|
|
source="https://fedorahosted.org/releases/l/i/libosinfo/libosinfo-$pkgver.tar.gz"
|
|
|
|
_builddir="$srcdir"/libosinfo-$pkgver
|
|
prepare() {
|
|
local i
|
|
cd "$_builddir"
|
|
for i in $source; do
|
|
case $i in
|
|
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$_builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--enable-introspection=yes \
|
|
--enable-vala=yes \
|
|
--with-usb-ids-path=/usr/share/hwdata/usb.ids \
|
|
--with-pci-ids-path=/usr/share/hwdata/pci.ids \
|
|
|| return 1
|
|
make || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
make DESTDIR="$pkgdir" install || return 1
|
|
}
|
|
|
|
md5sums="34dc0de14a0ebf08de4110a172e9d569 libosinfo-0.3.0.tar.gz"
|
|
sha256sums="538a3468792e919edf5364fe102d751353ae600a92ad3a24f024424a182cefbc libosinfo-0.3.0.tar.gz"
|
|
sha512sums="c935fcc74c76e3f7a5617ebffcd775fd15c4687cb84667cd944c99e8024a92b8997a8640afe690acdd6a769442a957cadb32c7ea9c44aa82181f8cf8a40e64e2 libosinfo-0.3.0.tar.gz"
|