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

pkgname=gnome-shell-extension-gnome-hdate-git
_gitname=gnome-hdate
_uuid="hdate@hatul.info"
_destdir="/usr/share/gnome-shell/extensions/$_uuid"
pkgver=2026.04.16
pkgrel=1
pkgdesc="Show Hebrew date in gnome-shell panel"
arch=('any')
url="https://github.com/amiad/gnome-hdate"
license=('GPL')
depends=('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')
md5sums=('SKIP')

pkgver() {
  cd "$_gitname"
  git log -1 --format="%cd.%h" --date=short | sed 's/-//g'
}

package() {
  cd "$srcdir/$_gitname"

  install -dm755 "$pkgdir$_destdir"
  cp -r . "$pkgdir$_destdir/"

  rm -rf "$pkgdir$_destdir/.git"

  if [ -d "$pkgdir$_destdir/schemas" ]; then
    glib-compile-schemas "$pkgdir$_destdir/schemas/"
  fi
}