diff options
author | Christoph Brill | 2021-01-25 13:45:30 +0100 |
---|---|---|
committer | Christoph Brill | 2021-01-25 13:45:30 +0100 |
commit | c3d89052bfe6c4e6f49aa6c0ca7b78aae9d6329c (patch) | |
tree | 76abc15ffc4548a329c3de7cd063f6d15c9171a8 /PKGBUILD | |
download | aur-c3d89052bfe6c4e6f49aa6c0ca7b78aae9d6329c.tar.gz |
Inital import of gtkmm4
Copied from gtkmm
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..637fd2169ac0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: Christoph Brill <aur@christophbrill.de> + +pkgbase=gtkmm4 +pkgname=(gtkmm4 gtkmm4-docs) +pkgver=4.0.0 +pkgrel=1 +pkgdesc="C++ bindings for GTK+ 4" +url="https://www.gtkmm.org/" +arch=(x86_64) +license=(LGPL) +depends=(gtk4 pangomm248 atkmm236 cairomm16) +makedepends=(git mm-common glibmm-docs cairomm16-docs pangomm248-docs atkmm236-docs meson) +checkdepends=(xorg-server-xvfb) +options=(!emptydirs) +_commit=e208083ad18cacd3d7f8d6aeb50f3784f905d991 # tags/4.0.0^0 +source=("git+https://gitlab.gnome.org/GNOME/gtkmm.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd gtkmm + git describe --tags | sed 's/-/+/g' +} + +prepare() { + cd gtkmm +} + +build() { + arch-meson gtkmm build -D maintainer-mode=true + meson compile -C build +} + +check() { + xvfb-run -s '-nolisten local' \ + meson test -C build --print-errorlogs +} + +package_gtkmm4() { + DESTDIR="$pkgdir" meson install -C build + + mkdir -p docs/usr/share + mv "$pkgdir"/usr/share/{devhelp,doc} docs/usr/share +} + +package_gtkmm4-docs() { + pkgdesc+=" (documentation)" + depends=() + options=(!strip) + + mv docs/* "$pkgdir" +} |