# $Id: PKGBUILD 135179 2015-06-11 01:12:35Z bgyorgy $ # Maintainer (Arch): Balló György # Contributor (Arch): Stefano Facchini # Maintainer: André Silva # Contributor: Daniel Milewski pkgname=libosinfo pkgver=0.2.12 pkgrel=1.parabola1 pkgdesc="GObject based library API for managing information about operating systems, hypervisors and the (virtual) hardware devices they can support, without support for nonfree systems" arch=('i686' 'x86_64' 'mips64el') url="http://libosinfo.org/" license=('GPL' 'LGPL') depends=('glib2' 'libxslt') makedepends=('check' 'gobject-introspection' 'intltool' 'libsoup' 'vala' 'python2') conflicts=(${pkgname}-libre) replaces=(${pkgname}-libre) options=('!libtool') source=(https://fedorahosted.org/releases/l/i/$pkgname/$pkgname-$pkgver.tar.gz libre.patch) sha256sums=('fa00ea8ddbca06c0dcc31e8938ac55cb71e71c6e2449687cd2c9e003a9478fed' '3047de165ea5da486efdbb4836331f4890036908f372f82abe2c025a627d77a3') prepare() { cd $pkgname-$pkgver rm data/datamaps/windows-lang.xml \ data/hypervisors/rhel-xen.xml{,.in} \ data/install-scripts/*.xml \ data/oses/*.xml{,.in} rm -r test/isodata/* patch -Np1 -i ../libre.patch cd po for file in *.po; do intltool-update ${file%.*} msgattrib --no-obsolete -o $file $file done } build() { cd $pkgname-$pkgver ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-static --enable-udev \ --with-udev-rulesdir=/usr/lib/udev/rules.d \ --with-usb-ids-path=/usr/share/hwdata/usb.ids \ --with-pci-ids-path=/usr/share/hwdata/pci.ids make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install }