diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-12-29 11:19:46 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-12-29 11:20:38 -0200 |
commit | b24ff2ab2649f0c8bf482f0cdf540de4667b4a04 (patch) | |
tree | 1f8eee76d0985c70dd19307f8acee5480508010c /pcr/libosinfo-libre/PKGBUILD | |
parent | a8d24e03f28fd51e47e2053a3bd925a0e7f75c08 (diff) |
fix freedom issue reported by niitotantei => https://labs.parabola.nu/issues/452
Diffstat (limited to 'pcr/libosinfo-libre/PKGBUILD')
-rw-r--r-- | pcr/libosinfo-libre/PKGBUILD | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pcr/libosinfo-libre/PKGBUILD b/pcr/libosinfo-libre/PKGBUILD new file mode 100644 index 000000000..8400558c0 --- /dev/null +++ b/pcr/libosinfo-libre/PKGBUILD @@ -0,0 +1,63 @@ +# Contributor: Daniel Milewski <niitotantei@gmail.com> + +_pkgname='libosinfo' +pkgname="$_pkgname-libre" +pkgver='0.2.8' +pkgrel='1' +pkgdesc='A 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') +url='http://libosinfo.org' +license=('LGPL') +depends=('glib2' 'libxslt') +makedepends=('intltool' 'libsoup') +checkdepends=('check') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +replaces=("$_pkgname") +source=("https://fedorahosted.org/releases/l/i/$_pkgname/$_pkgname-$pkgver.tar.gz" 'data.patch' 'po.patch' 'test.patch' + 'free-distros.patch') +sha256sums=('50cbfcff4548f37b5b7d3328cbc6e96fe6c2a48696e31eec0c819d161e38c643' + 'fdfb0753a7cf7865ac2ea5b17145f90d27d70e18c69fba0d60dfb43629ea0dac' + 'aab885d2b3a7f91a79efd7ab6f12fe1d4b264afa0fbc200268838b353600b338' + 'c4b328f36973931abd71a10a62ec590ef3ba1177486179bc96aa47a22a6d0a42' + 'f4b79c44ae4a39325480c2b0af4aa7ed086cc1cab7c9ba1119f50967a9a5f4ca') + +prepare() { + cd "$srcdir/$_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 "$srcdir/data.patch" + patch -Np1 -i "$srcdir/po.patch" + patch -Np1 -i "$srcdir/test.patch" + + cd "$srcdir/$_pkgname-$pkgver/po" + intltool-update pl + intltool-update uk + cd "$srcdir/$_pkgname-$pkgver" + + patch -Np1 -i "$srcdir/free-distros.patch" +} + +build() { + cd "$srcdir/$_pkgname-$pkgver" + + ./configure --prefix=/usr + make +} + +check() { + cd "$srcdir/$_pkgname-$pkgver" + + make -k check +} + +package() { + cd "$srcdir/$_pkgname-$pkgver" + + make DESTDIR="$pkgdir/" install +} |