summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7138d531843df157b8a98902019a9e5c206d8e30 (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=b1b4f30
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://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"/{} \;
}