summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d3ae42b98189e9b501948cd659495067a6291c52 (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
# Maintainer: ananaso <adavidson+aur@protonmail.ch>
# 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
}