Date: Wednesday, April 6, 2022 @ 22:59:58 Author: heftig Revision: 441690
42.0-1 Modified: ghex/trunk/PKGBUILD ----------+ PKGBUILD | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-04-06 22:50:28 UTC (rev 441689) +++ PKGBUILD 2022-04-06 22:59:58 UTC (rev 441690) @@ -2,31 +2,32 @@ # Contributor: Jan de Groot <[email protected]> # Contributor: Tobias Kieslich <[email protected]> -pkgname=ghex -pkgver=3.41.1 +pkgbase=ghex +pkgname=(ghex ghex-docs) +pkgver=42.0 pkgrel=1 pkgdesc="A simple binary editor for the Gnome desktop" url="https://wiki.gnome.org/Apps/Ghex" arch=(x86_64) license=(GPL) -depends=(gtk3) -makedepends=(git meson yelp-tools) -groups=(gnome-extra) -_commit=2bd5cb649e40de5e3b197ce7666ee9bd14ae2c24 # tags/3.41.1^0 +depends=(gtk4) +makedepends=(git meson yelp-tools gobject-introspection gi-docgen) +options=(debug) +_commit=c28eaa930ee7f88e56b003e81037dd9828ccc5b1 # tags/42.0^0 source=("git+https://gitlab.gnome.org/GNOME/ghex.git#commit=$_commit") sha256sums=('SKIP') pkgver() { - cd $pkgname + cd ghex git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' } prepare() { - cd $pkgname + cd ghex } build() { - arch-meson $pkgname build + arch-meson ghex build -D gtk_doc=true meson compile -C build } @@ -34,6 +35,19 @@ meson test -C build --print-errorlogs } -package() { +package_ghex() { + provides=(libgtkhex-4.so) + groups=(gnome-extra) + meson install -C build --destdir "$pkgdir" + + mkdir -p doc/usr/share + mv {"$pkgdir",doc}/usr/share/doc } + +package_ghex-docs() { + pkgdesc+=" (documentation)" + depends=() + + mv doc/* "$pkgdir" +}
