[arch-commits] Commit in json-glib/repos/extra-x86_64 (PKGBUILD PKGBUILD)
Jan Steffens
heftig at gemini.archlinux.org
Tue Aug 17 22:21:26 UTC 2021
Date: Tuesday, August 17, 2021 @ 22:21:26
Author: heftig
Revision: 422300
archrelease: copy trunk to extra-x86_64
Added:
json-glib/repos/extra-x86_64/PKGBUILD
(from rev 422299, json-glib/trunk/PKGBUILD)
Deleted:
json-glib/repos/extra-x86_64/PKGBUILD
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++++++++--------------------------
1 file changed, 55 insertions(+), 39 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-08-17 22:21:14 UTC (rev 422299)
+++ PKGBUILD 2021-08-17 22:21:26 UTC (rev 422300)
@@ -1,39 +0,0 @@
-# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
-# Contributor: Ionut Biru <ibiru at archlinux.org>
-
-pkgname=json-glib
-pkgver=1.6.2
-pkgrel=1
-pkgdesc="JSON library built on GLib"
-url="https://wiki.gnome.org/Projects/JsonGlib"
-arch=(x86_64)
-license=(GPL)
-depends=(glib2)
-makedepends=(gobject-introspection git gtk-doc meson)
-provides=(libjson-glib-1.0.so)
-_commit=667e2f35bd161fc74832b2a69d6294f583de361d # tags/1.6.2^0
-source=("git+https://gitlab.gnome.org/GNOME/json-glib.git#commit=$_commit")
-sha256sums=('SKIP')
-
-pkgver() {
- cd $pkgname
- git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
- cd $pkgname
-}
-
-build() {
- arch-meson $pkgname build -D man=true
- meson compile -C build
-}
-
-check() {
- meson test -C build
-}
-
-package() {
- DESTDIR="$pkgdir" meson install -C build
- rm -r "$pkgdir"/usr/{lib,share}/installed-tests
-}
Copied: json-glib/repos/extra-x86_64/PKGBUILD (from rev 422299, json-glib/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-08-17 22:21:26 UTC (rev 422300)
@@ -0,0 +1,55 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ionut Biru <ibiru at archlinux.org>
+
+pkgbase=json-glib
+pkgname=(json-glib json-glib-docs)
+pkgver=1.6.4
+pkgrel=1
+pkgdesc="JSON library built on GLib"
+url="https://wiki.gnome.org/Projects/JsonGlib"
+arch=(x86_64)
+license=(GPL)
+depends=(glib2)
+makedepends=(gobject-introspection git meson gi-docgen docbook-xsl)
+_commit=f33b07cc409531a6892acae492616f60467ca24e # tags/1.6.4^0
+source=("git+https://gitlab.gnome.org/GNOME/json-glib.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd json-glib
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd json-glib
+}
+
+build() {
+ arch-meson json-glib build -D man=true
+ meson compile -C build
+}
+
+check() {
+ meson test -C build --print-errorlogs
+}
+
+package_json-glib() {
+ depends+=(libg{lib,object,io}-2.0.so)
+ provides+=(libjson-glib-1.0.so)
+
+ meson install -C build --destdir "$pkgdir"
+
+ mkdir -p doc/usr/share
+ mv {"$pkgdir",doc}/usr/share/doc
+
+ rm -r "$pkgdir"/usr/{lib,share}/installed-tests
+}
+
+package_json-glib-docs() {
+ pkgdesc+=" (documentation)"
+ depends=()
+
+ mv doc/* "$pkgdir"
+}
+
+# vim:set sw=2 et:
More information about the arch-commits
mailing list