summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 069b54834c3c4e790c686805bbb3452ed18d96f5 (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
# Maintainer: KeyboardFire <andy@keyboardfire.com>
pkgname=tm-git
pkgver=r6.68d8086
pkgrel=1
pkgdesc='a text-based stopwatch/countdown timer tool'
arch=('any')
url='http://github.com/KeyboardFire/tm'
license=('GPL')
depends=('glibc' 'libnotify')
makedepends=('git')
provides=('tm')
conflicts=('tm')
source=('tm::git+git://github.com/KeyboardFire/tm#branch=master')
md5sums=('SKIP')

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

build() {
    cd "$srcdir/${pkgname%-git}"
    make
}

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