# Maintainer: ananaso # Contributor: 4679kun <4679kun@outlook.com> pkgname=gnome-shell-extension-screenshotlocations-git _reponame=gnome-shell-screenshotlocations-extension pkgver=r32.1daf0f9 pkgrel=1 pkgdesc="A GNOME extension for changing the screenshot output directory" arch=('any') url="https://codeberg.org/kiyui/gnome-shell-screenshotlocations-extension" license=('GPL2') depends=('gnome-shell') makedepends=('git' 'meson') source=('git+'${url}'.git') sha256sums=('SKIP') pkgver() { cd "${srcdir}/${_reponame}" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$srcdir/${_reponame}" arch-meson --buildtype=plain build ninja -C build } package() { cd "$srcdir/${_reponame}" DESTDIR="$pkgdir" ninja -C build install }