summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b907d6eecc7462534e0be4cbcbd8a1fad67adab0 (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
# Maintainer: Tony Lambiris <tony@criticalstack.com>

pkgname=gnome-shell-extension-screenshot-git
pkgver=114.de64aa8
pkgrel=1
pkgdesc="Gnome Shell extension for making and uploading screenshots"
arch=('any')
url="https://github.com/OttoAllmendinger/gnome-shell-screenshot"
license=('MIT')
depends=('gnome-shell')
makedepends=('git')
source=("${pkgname}::git+https://github.com/OttoAllmendinger/gnome-shell-screenshot.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname}

  echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd ${pkgname}
  _extid="gnome-shell-screenshot@ttll.de"
  _extpath="${pkgdir}/usr/share/gnome-shell/extensions/${_extid}"

  make EXTENSION_PATH=${_extpath} install
}