aboutsummaryrefslogtreecommitdiffstats
path: root/main/libosinfo
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-25 09:03:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-25 09:03:28 +0000
commit2e704f3ade0c27e1f3cce3ec1082faf35c441705 (patch)
treed1e883026d28d580cd8ce7aa7ce770c86bde7846 /main/libosinfo
parentcc970b4f3354823363f1d2654cdbed08dd8fc269 (diff)
downloadaports-2e704f3ade0c27e1f3cce3ec1082faf35c441705.tar.bz2
aports-2e704f3ade0c27e1f3cce3ec1082faf35c441705.tar.xz
main/libosinfo: move from testing
Diffstat (limited to 'main/libosinfo')
-rw-r--r--main/libosinfo/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/libosinfo/APKBUILD b/main/libosinfo/APKBUILD
new file mode 100644
index 0000000000..cd3a48bcaa
--- /dev/null
+++ b/main/libosinfo/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libosinfo
+pkgver=0.2.11
+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
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="acfcddc6a3f577524fd705947fb5abbc libosinfo-0.2.11.tar.gz"
+sha256sums="bb6ba136756b26045ba3ed9b3c1b0920a639dd80b007769a1df356d8e2fe0921 libosinfo-0.2.11.tar.gz"
+sha512sums="a459c6e0e396786b7093685a9a4fe871c12854b1c7c7fb6f0384659fa66be255f3e0c83f0633ecdb42fbb88e18b5f804637fdd145a596bfbc5b6cd41ce08bada libosinfo-0.2.11.tar.gz"