[arch-commits] Commit in libhandy/trunk (PKGBUILD)

Jan Steffens heftig at gemini.archlinux.org
Tue Mar 22 00:50:52 UTC 2022


    Date: Tuesday, March 22, 2022 @ 00:50:52
  Author: heftig
Revision: 440473

1.6.1-1

Modified:
  libhandy/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++++++++---------
 1 file changed, 22 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-03-22 00:46:13 UTC (rev 440472)
+++ PKGBUILD	2022-03-22 00:50:52 UTC (rev 440473)
@@ -1,8 +1,9 @@
 # Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
 # Contributor: Balló György <ballogyor+arch at gmail dot com>
 
-pkgname=libhandy
-pkgver=1.4.0
+pkgbase=libhandy
+pkgname=(libhandy libhandy-docs)
+pkgver=1.6.1
 pkgrel=1
 pkgdesc="Library full of GTK+ widgets for mobile phones"
 url="https://gitlab.gnome.org/GNOME/libhandy"
@@ -9,20 +10,20 @@
 arch=(x86_64)
 license=(LGPL)
 depends=(glib2 gtk3)
-makedepends=(git gobject-introspection meson vala glade)
+makedepends=(git gobject-introspection meson vala glade gi-docgen)
 checkdepends=(xorg-server-xvfb)
-provides=(libhandy-1.so)
-_commit=f8626427acebfa08b2b4ee1166d51e416d3d7407  # tags/1.4.0^0
+options=(debug)
+_commit=4186dae5570cf8e73cf8a145236240eec3a237b5  # tags/1.6.1^0
 source=("git+https://gitlab.gnome.org/GNOME/libhandy.git#commit=$_commit")
 sha256sums=('SKIP')
 
-prepare() {
+pkgver() {
   cd libhandy
+  git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
 }
 
-pkgver() {
+prepare() {
   cd libhandy
-  git describe --tags | sed 's/^v//;s/-/+/g'
 }
 
 build() {
@@ -36,8 +37,20 @@
     meson test -C build --print-errorlogs
 }
 
-package() {
+package_libhandy() {
+  provides=(libhandy-1.so)
+
   meson install -C build --destdir "$pkgdir"
+
+  mkdir -p doc/usr/share
+  mv {"$pkgdir",doc}/usr/share/doc
 }
 
+package_libhandy-docs() {
+  pkgdesc+=" (documentation)"
+  depends=()
+
+  mv doc/* "$pkgdir"
+}
+
 # vim:set sw=2 et:



More information about the arch-commits mailing list