summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c093ba7692b7133699bfec67fcfb1c6d300c75b4 (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: Chris Marsh <chris.pm@gmail.com>

pkgname=galendae-git
pkgver=r32.e0e5c02
pkgrel=1
pkgdesc="A basic popup calendar that can be styled to match workspace themes"
arch=('i686' 'x86_64')
url="https://github.com/chris-marsh/galendae"
license=('MIT')
depends=('gtk3')
makedepends=('git')
source=("git+https://github.com/chris-marsh/galendae.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd ${pkgname%-git}
  make release
}

package() {
  cd ${pkgname%-git}
  install -d "$pkgdir"/usr/{bin,share/galendae/examples}
  install -m755 galendae "$pkgdir"/usr/bin/
  install -m644 examples/* "$pkgdir"/usr/share/galendae/examples/
  install -m644 galendaerc "$pkgdir"/usr/share/galendae/examples/
  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}