mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Jameson Pugh <imntreal@gmail.com>
|
|
# Contributor: Tim Jester-Pfadt <t.jp<at>gmx.de>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to remove invalid compiler option
|
|
|
|
pkgbase=appstream
|
|
pkgname=(appstream appstream-qt)
|
|
pkgver=0.12.10
|
|
pkgrel=2
|
|
pkgdesc="Provides a standard for creating app stores across distributions"
|
|
arch=(x86_64)
|
|
url="https://distributions.freedesktop.org/wiki/AppStream"
|
|
license=(GPL)
|
|
depends=(libyaml libxml2 libstemmer glib2 lmdb libsoup)
|
|
makedepends=(meson xmlto gobject-introspection gtk-doc qt5-tools itstool vala gperf)
|
|
source=("https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgver.tar.xz"{,.asc}
|
|
update-appstream-cache.hook
|
|
0001-Remove-Wno-error-deprecated-copy.patch)
|
|
sha256sums=('9f0a2c550729e4ccd29844c7a9d021f687fb133ffb37f23f928d50a125d7bd0f'
|
|
'SKIP'
|
|
'3a96a1479cfd18dad36c2ca3181aabe46af9bf772c00b965d86ec5f55cd0e0eb'
|
|
'e4cfc8b0f72c6a659e70dbd7dc870431faa0cf3320a64c8ca4f0df3a5e13117e')
|
|
validpgpkeys=(D33A3F0CA16B0ACC51A60738494C8A5FBF4DECEB) # Matthias Klumpp <matthias@tenstral.net>
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
|
|
cd AppStream-$pkgver
|
|
patch -p1 -i ../0001-Remove-Wno-error-deprecated-copy.patch
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
|
|
meson ../AppStream-$pkgver \
|
|
--prefix=/usr \
|
|
-Dqt=true \
|
|
-Dvapi=true
|
|
ninja
|
|
}
|
|
|
|
package_appstream() {
|
|
cd build
|
|
|
|
DESTDIR="$pkgdir" ninja install
|
|
|
|
# provided by -qt subpackage
|
|
rm -r "$pkgdir"/usr/{include/AppStreamQt,lib/cmake,lib/libAppStreamQt.*}
|
|
|
|
install -Dm644 "$srcdir"/update-appstream-cache.hook "$pkgdir"/usr/share/libalpm/hooks/update-appstream-cache.hook
|
|
}
|
|
|
|
package_appstream-qt() {
|
|
pkgdesc='Qt5 interface for AppStream'
|
|
depends=(appstream qt5-base)
|
|
|
|
cd build
|
|
DESTDIR="$pkgdir" ninja install
|
|
|
|
# provided by appstream
|
|
rm -r "$pkgdir"{/etc,/usr/{bin,include/appstream,lib/{girepository-1.0,libappstream*,pkgconfig},share}}
|
|
}
|