summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b48db7507d27933159edeb0327416b92b7707962 (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: Joakim Reinert <mail+aur@jreinert.com>

pkgname=ketchup-git
pkgver=0.1.0
pkgrel=1
pkgdesc='a pomodoro timer using client <-> server architecture'
arch=(any)
url='https://github.com/jreinert/ketchup'
licence=('MIT')
depends=(libpcl)
makedepends=(crystal-git)

source=("${pkgname}::git+https://github.com/jreinert/ketchup.git")
sha512sums=(SKIP)
provides=('ketchup')
conflicts=('ketchup-bin')

pkgver() {
  cd "$pkgname"
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  make -C "$pkgname"
}

package() {
  make -C "$pkgname" PREFIX=/usr DESTDIR="$pkgdir" install
  install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: