summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc9d6ec5042e49a9cb6fb190f6705a66906b5355 (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
34
35
36
37
# Maintainer: D3vil0p3r <vozaanthony [at] gmail [dot] com>

pkgname=gnome-shell-extension-fly-pie-git
pkgver=27.r2.g5851123
pkgrel=1
pkgdesc='Fly-Pie is an innovative marking menu written as a GNOME Shell extension.'
arch=('any')
url='https://github.com/Schneegans/Fly-Pie'
license=('MIT')
depends=('gnome-shell')
makedepends=('git' 'zip')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(${pkgname%-git}::git+$url.git)
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${pkgname%-git}"

  make zip
}

package() {
  cd "${pkgname%-git}"

  _uuid='flypie@schneegans.github.com'
  
  install -d "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
  bsdtar -xvf $_uuid.zip -C "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
  glib-compile-schemas "$pkgdir/usr/share/gnome-shell/extensions/$_uuid/schemas"
}