[arch-commits] Commit in libsigc++/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Wed Mar 25 13:50:22 UTC 2020
Date: Wednesday, March 25, 2020 @ 13:50:21
Author: heftig
Revision: 378469
2.10.3-1
Modified:
libsigc++/trunk/PKGBUILD
----------+
PKGBUILD | 39 +++++++++++++++++++--------------------
1 file changed, 19 insertions(+), 20 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-03-25 13:50:00 UTC (rev 378468)
+++ PKGBUILD 2020-03-25 13:50:21 UTC (rev 378469)
@@ -2,15 +2,17 @@
# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
pkgbase=libsigc++
-pkgname=('libsigc++' 'libsigc++-docs')
-pkgver=2.10.2
+pkgname=(libsigc++ libsigc++-docs)
+pkgver=2.10.3
pkgrel=1
+pkgdesc="Callback system for use in widget libraries"
+url="http://libsigc.sourceforge.net/"
arch=('x86_64')
license=('LGPL')
-url="http://libsigc.sourceforge.net/"
-makedepends=('gcc-libs' 'git' 'mm-common' 'doxygen' 'libxslt' 'graphviz')
-options=('!emptydirs')
-_commit=06fabac512bf81164d5b01f877927cb39e9db864 # tags/2.10.2^0
+depends=(gcc-libs)
+makedepends=(git mm-common meson)
+options=(!emptydirs)
+_commit=88fdb3a14ec67de233fed22646fc9b14c24367f5 # tags/2.10.3^0
source=("git+https://github.com/libsigcplusplus/libsigcplusplus#commit=$_commit")
sha256sums=('SKIP')
@@ -21,38 +23,35 @@
prepare() {
cd libsigcplusplus
- NOCONFIGURE=1 ./autogen.sh
}
build() {
- cd libsigcplusplus
- ./configure --prefix=/usr
- make
+ arch-meson libsigcplusplus build -D maintainer-mode=true
+ ninja -C build
}
check() {
- cd libsigcplusplus
- make check
+ meson test -C build --print-errorlogs
}
package_libsigc++ () {
- pkgdesc="Libsigc++ implements a full callback system for use in widget libraries - V2"
- depends=('gcc-libs')
provides=("libsigc++2.0=${pkgver}")
replaces=('libsigc++2.0')
conflicts=('libsigc++2.0')
- cd libsigcplusplus
- sed -i -e 's/^doc_subdirs/#doc_subdirs/' Makefile
- make DESTDIR="${pkgdir}" install
+ DESTDIR="$pkgdir" meson install -C build
+
+ mkdir -p docs/usr/share
+ mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share
}
package_libsigc++-docs() {
- pkgdesc="Developer documentation for libsigc++"
+ pkgdesc+=" (documentation)"
+ depends=()
provides=("libsigc++2.0-docs=${pkgver}")
replaces=('libsigc++2.0-docs')
conflicts=('libsigc++2.0-docs')
+ options=(!strip)
- cd libsigcplusplus/docs
- make DESTDIR="${pkgdir}" install
+ mv docs/* "$pkgdir"
}
More information about the arch-commits
mailing list