summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 42cd737abb802915f46a64603261314d7ea83064 (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
# Maintainer: 4679kun <4679kun@outlook.com>

pkgname=gnome-shell-extension-screenshotlocations-git
_gitname=gnome-shell-screenshotlocations-extension
pkgver=25.2948bc8
pkgrel=1
pkgdesc="Gnome-shell extension disabling hotcorners"
arch=('any')
url="https://github.com/TimurKiyivinski/gnome-shell-screenshotlocations-extension"
license=('GPLv2')
depends=('gnome-shell')
makedepends=('git')
source=('git://github.com/TimurKiyivinski/gnome-shell-screenshotlocations-extension')
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_gitname}"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  _uuid='screenshotlocations.timur@linux.com'
  
  cd "$_gitname/$_uuid"
  install -Dm644 "metadata.json" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/metadata.json"
  install -m644 "extension.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/extension.js"
  install -Dm644 "keybinder.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/keybinder.js"
  install -m644 "prefs.js" \
    "${pkgdir}/usr/share/gnome-shell/extensions/${_uuid}/prefs.js"
}