mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 20:36:40 +02:00
testing/appstream: new aport
https://distributions.freedesktop.org/wiki/AppStream Provides a standard for creating app stores across distributions
This commit is contained in:
parent
b42bff67f2
commit
70acd16c27
52
testing/appstream/APKBUILD
Normal file
52
testing/appstream/APKBUILD
Normal file
@ -0,0 +1,52 @@
|
||||
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
||||
# Maintainer: Leo <thinkabit.ukim@gmail.com>
|
||||
pkgname=appstream
|
||||
pkgver=0.12.8
|
||||
pkgrel=0
|
||||
pkgdesc="Provides a standard for creating app stores across distributions"
|
||||
url="https://distributions.freedesktop.org/wiki/AppStream"
|
||||
arch="all"
|
||||
license="LGPL-2.1-or-later AND GPL-2.0-or-later"
|
||||
makedepends="meson yaml-dev libxml2-dev glib-dev lmdb-dev gobject-introspection-dev
|
||||
gperf qt5-qtbase-dev"
|
||||
triggers="$pkgname.trigger=/usr/share/app-info/*"
|
||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||
subpackages="$pkgname-dev $pkgname-doc $pkgname-qt $pkgname-lang"
|
||||
source="https://www.freedesktop.org/software/appstream/releases/AppStream-$pkgver.tar.xz"
|
||||
builddir="$srcdir/AppStream-$pkgver"
|
||||
|
||||
build() {
|
||||
meson \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--buildtype=release \
|
||||
-Dqt=true \
|
||||
-Ddocs=false \
|
||||
-Dapidocs=false \
|
||||
-Dinstall-docs=false \
|
||||
-Dstemming=false \
|
||||
-Dvapi=false \
|
||||
-Dapt-support=false \
|
||||
-Dgir=true \
|
||||
. output
|
||||
ninja -C output
|
||||
}
|
||||
|
||||
check() {
|
||||
ninja -C output test
|
||||
}
|
||||
|
||||
package() {
|
||||
DESTDIR="$pkgdir" ninja -C output install
|
||||
}
|
||||
|
||||
qt() {
|
||||
pkgdesc="Qt5 interface for AppStream"
|
||||
license="LGPL-2.1-or-later"
|
||||
|
||||
mkdir -p "$subpkgdir"/usr/lib
|
||||
mv "$pkgdir"/usr/lib/libAppStreamQt.so.* "$subpkgdir"/usr/lib
|
||||
}
|
||||
sha512sums="4354ef1840d919102647feffc38687f508b14fe9c047c868448347d888aa821dd8a4d25787a2ffb55247f8e9e20e9e03ba330ad74ad61d476be0c414c04a7c30 AppStream-0.12.8.tar.xz"
|
||||
6
testing/appstream/appstream.post-install
Normal file
6
testing/appstream/appstream.post-install
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
umask 022
|
||||
/usr/bin/appstreamcli refresh-cache --force
|
||||
|
||||
exit 0
|
||||
6
testing/appstream/appstream.post-upgrade
Normal file
6
testing/appstream/appstream.post-upgrade
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
umask 022
|
||||
/usr/bin/appstreamcli refresh-cache --force
|
||||
|
||||
exit 0
|
||||
4
testing/appstream/appstream.trigger
Normal file
4
testing/appstream/appstream.trigger
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
umask 022
|
||||
/usr/bin/appstreamcli refresh-cache --force
|
||||
Loading…
x
Reference in New Issue
Block a user