49 lines
1.5 KiB
Bash
49 lines
1.5 KiB
Bash
# Template file for 'AppStream'
|
|
pkgname=AppStream
|
|
version=0.15.3
|
|
revision=1
|
|
wrksrc="appstream-${version}"
|
|
build_style=meson
|
|
build_helper="gir qemu"
|
|
configure_args="$(vopt_bool gir gir) $(vopt_bool vala vapi)
|
|
-Dstemming=false -Dapidocs=false -Dqt=true"
|
|
hostmakedepends="docbook-xsl gettext glib-devel gperf libxslt pkg-config
|
|
qt5-host-tools $(vopt_if vala vala) itstool"
|
|
makedepends="libglib-devel libxml2-devel libyaml-devel qt5-devel libxmlb-devel
|
|
libsoup-devel libcurl-devel"
|
|
short_desc="Tools and libraries to work with AppStream metadata"
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://github.com/ximion/appstream"
|
|
changelog="https://raw.githubusercontent.com/ximion/appstream/master/NEWS"
|
|
distfiles="https://github.com/ximion/appstream/archive/v${version}.tar.gz"
|
|
checksum=349b4753c5e6d8118c8ea3883547b1fde11a8217ffd61248a181f18bdfc1670c
|
|
conf_files="/etc/appstream.conf"
|
|
triggers="appstream-cache"
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
AppStream-devel_package() {
|
|
depends="AppStream-${version}_${revision} AppStream-qt-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/cmake
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|
|
|
|
AppStream-qt_package() {
|
|
short_desc+=" - qt5 interface library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libAppStreamQt.so.*"
|
|
}
|
|
}
|