Date: Sunday, March 22, 2020 @ 16:16:24 Author: heftig Revision: 378334
2.42.1-2: adjust to keep similar to glibmm Modified: pangomm/trunk/PKGBUILD ----------+ PKGBUILD | 28 ++++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-03-22 16:15:21 UTC (rev 378333) +++ PKGBUILD 2020-03-22 16:16:24 UTC (rev 378334) @@ -3,7 +3,7 @@ pkgbase=pangomm pkgname=(pangomm pangomm-docs) pkgver=2.42.1 -pkgrel=1 +pkgrel=2 pkgdesc="C++ bindings for Pango" url="https://www.gtkmm.org/" arch=(x86_64) @@ -10,6 +10,7 @@ license=(LGPL) depends=(pango glibmm cairomm) makedepends=(git mm-common glibmm-docs cairomm-docs meson) +options=(!emptydirs) _commit=7dfc6c3372faaa4a7c492d08f09881b02095145b # tags/2.42.1^0 source=("git+https://gitlab.gnome.org/GNOME/pangomm.git#commit=$_commit") sha256sums=('SKIP') @@ -19,23 +20,30 @@ git describe --tags | sed 's/-/+/g' } +prepare() { + cd $pkgbase +} + build() { - mkdir -p build - cd build - arch-meson ../$pkgbase - ninja + arch-meson $pkgbase build -D maintainer-mode=true + ninja -C build } +check() { + meson test -C build --print-errorlogs +} + package_pangomm() { - cd build - DESTDIR="$pkgdir" ninja install - mv "$pkgdir"/usr/share "$srcdir" + DESTDIR="$pkgdir" meson install -C build + + mkdir -p docs/usr/share + mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share } package_pangomm-docs() { pkgdesc+=" (documentation)" depends=() + options=(!strip) - mkdir -p "$pkgdir"/usr - mv share "$pkgdir"/usr + mv docs/* "$pkgdir" }