summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a7f2a489ef715face5ecbb874a3f68d1ccd4d08 (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
# Maintainer: Taijian <taijian@posteo.de>
# Contributor: Mohammadreza Abdollahzadeh < morealaz at gmail dot com >

pkgname=gnome-shell-extension-window-corner-preview-git
pkgver=2.r35.a95bb13
pkgrel=1
pkgdesc='Extension for GNOME shell to show a video preview on the corner of the screen.'
arch=(any)
url="https://github.com/medenagan/window-corner-preview"
license=('MIT')
depends=('gnome-shell>=3.10')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install='gnome-shell-extension.install'
# source=("git+${url}.git")
source=("git+${url}"#branch=feat-ES6-porting)
sha256sums=('SKIP')

pkgver() {
  cd "window-corner-preview"
  # git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
  printf "%s" "$(git describe --long | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')"
}

package() {
  cd "window-corner-preview"
  install -d "${pkgdir}/usr/share/gnome-shell/extensions"
  cp -a "window-corner-preview@fabiomereu.it" \
    "${pkgdir}/usr/share/gnome-shell/extensions/"
}
# vim:set ts=2 sw=2 et: