summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ea4d4174a8f0cd9dfacb7194d206b48cd229d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Yosef Or Boczko <yoseforb@gnome.org>

pkgname=baobab-git
pkgver=42.alpha.r1.g30f0653
pkgrel=1
pkgdesc="A graphical directory tree analyzer"
arch=(x86_64 i686 armv6h armv7h aarch64)
url="https://wiki.gnome.org/Apps/DiskUsageAnalyzer"
license=(GPL2)
groups=(gnome)
depends=(dconf gtk4 libadwaita gsettings-desktop-schemas librsvg)
makedepends=(intltool itstool vala gobject-introspection yelp-tools appstream-glib git meson)
provides=(baobab)
conflicts=(baobab)
source=("${pkgname%-git}::git+https://gitlab.gnome.org/GNOME/baobab.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson baobab build
  ninja -C build
}

package() {
  DESTDIR="$pkgdir" ninja -C build install

  # https://bugs.archlinux.org/task/31861
  sed -i '/MimeType/d' "$pkgdir/usr/share/applications/org.gnome.baobab.desktop"
}