summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 9265f326139fe914d7d5ff5f745caf7465a1a96f (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
# Maintainer: John Jenkins <twodopeshaggy@gmail.com>

_pkgname=clockr
pkgname=clockr-git
pkgver=r2.8348d57
pkgrel=1
pkgdesc="simple curses clock written in python"
arch=('any')
url="https://github.com/shaggytwodope/clockr"
license=('MIT')
depends=('python')
makedepends=('git')
conflicts=('clockr')
source=('git://github.com/shaggytwodope/clockr.git')
md5sums=('SKIP')

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

package() {
  cd "$srcdir/$_pkgname"
  install -Dm755 clockr "${pkgdir}/usr/bin/clockr"
}