summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 21d99c296d8562e38bae21562c0c59fc83826d26 (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
# Maintainer: Amiad Bareli <amiad@hatul.info> 

pkgname=gnome-shell-extension-gnome-hdate-git
_gitname=gnome-hdate
pkgver=9500f83
pkgrel=1
pkgdesc="Show Hebrew date in gnome-shell panel"
arch=('i686' 'x86_64')
url="https://github.com/amiad/gnome-hdate"
license=('GPL')
depends=('libhdate' 'libhdate-glib' 'gnome-shell')
makedepends=('git')
conflicts=('gnome-shell-extension-gnome-hdate')
provides=('gnome-shell-extension-gnome-hdate')
source=('git+https://github.com/amiad/gnome-hdate.git')
# Because the sources are not static, skip Git checksum:
md5sums=('SKIP')

pkgver() {
  cd $_gitname
  # Use the tag of the last commit
  git describe --always | sed 's|-|.|g'
}

package() {
  cd $srcdir/$_gitname
  _uuid="hdate@hatul.info"
  install -dm755 "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"
  find . -type d -not \( -wholename './.git*' \) -exec install -dm755 "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"/{} \;
  find . -type f -not \( -wholename './.git*' \) -exec install -Dm644 {} "$pkgdir/usr/share/gnome-shell/extensions/$_uuid"/{} \;
}