summaryrefslogtreecommitdiff
path: root/libre/libosinfo/PKGBUILD
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-05 01:00:19 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-09-05 01:00:19 -0300
commit341b009b3eda915c70228cf8bc79ba89d8274994 (patch)
tree40118832cc809154d6163d52f58a71aeed16d296 /libre/libosinfo/PKGBUILD
parentbfad9b6bddd15d8661f0d4fd52f897232ea8bf74 (diff)
parent7988d6b367de8e5983d7571dd962dc77863eaa60 (diff)
downloadabslibre-341b009b3eda915c70228cf8bc79ba89d8274994.tar.gz
abslibre-341b009b3eda915c70228cf8bc79ba89d8274994.tar.bz2
abslibre-341b009b3eda915c70228cf8bc79ba89d8274994.zip
Merge branch 'master' of ssh://lukeshu.com:1863/srv/git/mirror/parabola/abslibre
Diffstat (limited to 'libre/libosinfo/PKGBUILD')
-rw-r--r--libre/libosinfo/PKGBUILD60
1 files changed, 60 insertions, 0 deletions
diff --git a/libre/libosinfo/PKGBUILD b/libre/libosinfo/PKGBUILD
new file mode 100644
index 000000000..eea40ee0e
--- /dev/null
+++ b/libre/libosinfo/PKGBUILD
@@ -0,0 +1,60 @@
+# $Id: PKGBUILD 109557 2014-04-15 23:23:01Z bgyorgy $
+# Maintainer (Arch): Balló György <ballogyor+arch at gmail dot com>
+# Contributor (Arch): Stefano Facchini <stefano.facchini@gmail.com>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Daniel Milewski <niitotantei@gmail.com>
+
+pkgname=libosinfo
+pkgver=0.2.10
+pkgrel=2.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')
+conflicts=(${pkgname}-libre)
+replaces=(${pkgname}-libre)
+options=('!libtool')
+source=(https://fedorahosted.org/releases/l/i/$pkgname/$pkgname-$pkgver.tar.gz
+ libre.patch)
+sha256sums=('564bd487a39dc09a10917c1d7a95f739ee7701d9cd0fbabcacea64f615e20a2d'
+ '46d1c192f3730b5b02a52140a8f1abbacd6d41968c29cec9205f0cec77336a17')
+
+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
+}