Commit 443457b0 authored by Leo's avatar Leo Committed by Natanael Copa

community/appstream-glib: upgrade to 0.7.5

parent aa71a294
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=appstream-glib pkgname=appstream-glib
pkgver=0.6.3 pkgver=0.7.5
pkgrel=0 pkgrel=0
pkgdesc="Library for AppStream metadata" pkgdesc="Library for AppStream metadata"
url="https://people.freedesktop.org/~hughsient/appstream-glib/" url="https://people.freedesktop.org/~hughsient/appstream-glib/"
arch="all" arch="all"
license="LGPL-2.0-or-later" license="LGPL-2.0-or-later"
depends="" makedepends="
depends_dev="glib-dev gdk-pixbuf-dev" meson
makedepends="$depends_dev fontconfig-dev freetype-dev pango-dev sqlite-dev glib-dev
gobject-introspection-dev gtk-doc yaml-dev libarchive-dev libsoup-dev libarchive-dev
gtk+3.0-dev json-glib-dev libgcab-dev" libsoup-dev
install="" json-glib-dev
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-builder" gdk-pixbuf-dev
gtk+3.0-dev
freetype-dev
fontconfig-dev
yaml-dev
gperf
libgcab-dev
gobject-introspection-dev
"
checkdepends="gsettings-desktop-schemas"
subpackages="
$pkgname-dev
$pkgname-doc
$pkgname-lang
$pkgname-builder
$pkgname-bash-completion:bashcomp:noarch"
source="https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-$pkgver.tar.xz" source="https://people.freedesktop.org/~hughsient/appstream-glib/releases/appstream-glib-$pkgver.tar.xz"
_builddir="$srcdir"/appstream-glib-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() { build() {
cd "$_builddir" meson \
DATADIRNAME=share ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \ --prefix=/usr \
--sysconfdir=/etc \ -Ddep11=true \
--mandir=/usr/share/man \ -Dbuilder=true \
--infodir=/usr/share/info \ -Drpm=false \
--localstatedir=/var \ -Dalpm=false \
--disable-rpm \ -Dfonts=true \
--enable-shared \ -Dstemmer=false \
--disable-static \ -Dman=true \
--enable-gobject-introspection \ -Dgtk-doc=false \
|| return 1 -Dintrospection=true \
make || return 1 output
ninja -C output
}
check() {
ninja -C output test
} }
package() { package() {
cd "$_builddir" DESTDIR="$pkgdir" ninja -C output install
make DESTDIR="$pkgdir" install || return 1
# Remove installed tests
rm -rf usr/share/installed-tests/appstream-glib
} }
builder() { builder() {
pkgdesc="Library and command line tools for building AppStream metadata" pkgdesc="Library and command line tools for building AppStream metadata"
mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib \ mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib \
"$subpkgdir"/usr/share/bash-completion/completions || return 1 "$subpkgdir"/usr/share/bash-completion/completions
mv "$pkgdir"/usr/bin/appstream-builder "$subpkgdir"/usr/bin/ || return 1 mv "$pkgdir"/usr/bin/appstream-builder "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/bash-completion/completions/appstream-builder \ mv "$pkgdir"/usr/share/bash-completion/completions/appstream-builder \
"$subpkgdir"/usr/share/bash-completion/completions/ || return 1 "$subpkgdir"/usr/share/bash-completion/completions/
mv "$pkgdir"/usr/lib/asb-plugins-5 \ mv "$pkgdir"/usr/lib/asb-plugins-5 \
"$pkgdir"/usr/lib/libappstream-builder.so.* \ "$pkgdir"/usr/lib/libappstream-builder.so.* \
"$subpkgdir"/usr/lib/ || return 1 "$subpkgdir"/usr/lib/
} }
md5sums="2654b73dd55dcc2a1b52f3a19ed7cdd0 appstream-glib-0.6.3.tar.xz" bashcomp() {
sha256sums="3ec355c950b86cd792b6e396a5a4a72487999e300fcacf7466a663974ec4ad24 appstream-glib-0.6.3.tar.xz" depends=""
sha512sums="aae4885e32bc6f0247f6e8f415471531a8c28976e1ba4bd977200d72e24a04dfc2370395e3e0ea6e052386a963540cb91f025cd4f1ab837404762f1be2a76ff0 appstream-glib-0.6.3.tar.xz" pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
install -Dm644 "$pkgdir"/usr/share/bash-completion/completions/* \
"$subpkgdir"/usr/share/bash-completion/completions
}
sha512sums="1747d27b357df63458011c6579e8ad56e8ec5328490d2d449e1b39a3bad98250c60df8d2174be523acb53da3518a136aa0a2e54f5ccce911ca1884dd6a8d5e77 appstream-glib-0.7.5.tar.xz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment