| 1 | # Contributor: August Klein <[email protected]> |
| 2 | maintainer="Achill Gilgenast <[email protected]>" |
| 3 | pkgname=ghex |
| 4 | pkgver=50.4 |
| 5 | _pkgver=${pkgver%.*} |
| 6 | pkgrel=0 |
| 7 | pkgdesc="A hex editor for GNOME" |
| 8 | url="https://gitlab.gnome.org/GNOME/ghex" |
| 9 | arch="all" |
| 10 | license="GPL-2.0-or-later" |
| 11 | depends="dconf" |
| 12 | makedepends=" |
| 13 | at-spi2-core-dev |
| 14 | desktop-file-utils |
| 15 | glib-dev |
| 16 | gtk4.0-dev |
| 17 | itstool |
| 18 | libadwaita-dev |
| 19 | meson |
| 20 | " |
| 21 | subpackages="$pkgname-dev $pkgname-lang $pkgname-doc" |
| 22 | source="https://download.gnome.org/sources/ghex/$_pkgver/ghex-$pkgver.tar.xz" |
| 23 | |
| 24 | build() { |
| 25 | abuild-meson -Db_lto=true . output |
| 26 | meson compile -C output |
| 27 | } |
| 28 | |
| 29 | check() { |
| 30 | meson test --print-errorlogs -C output |
| 31 | } |
| 32 | |
| 33 | package() { |
| 34 | DESTDIR="$pkgdir" meson install --no-rebuild -C output |
| 35 | } |
| 36 | |
| 37 | sha512sums=" |
| 38 | 36658da2c344b33a64bf5bed60094e605fca8b4823e80d3d165778ba2dafacd37b4f056717895d18c282de1aade626ca77922c217d8dd3d11645330224e53f1a ghex-50.4.tar.xz |
| 39 | " |