summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dc29fe1a2fe4c3fc3535c7194204bf14d3c0f041 (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=134.89445b3
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' 'zip')
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
}