summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d4bddc6490f61ad67750517448eab7bfce58a4c (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
# Maintainer: Tomasz Kramkowski <tk@the-tk.com>
pkgname=timer-git
pkgver=r104.365f022
pkgrel=1

pkgdesc='Simple beeping countdown timer'
arch=('i686' 'x86_64')
url='https://github.com/EliteTK/c-stuff/blob/master/timer.c'
license=('GPL3')
depends=('glibc')

source=('git+https://github.com/EliteTK/c-stuff.git')

md5sums=('SKIP')

pkgver() {
	cd c-stuff

	printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	make -C c-stuff LDLIBS=-lrt timer
}

package() {
	make -C c-stuff DESTDIR="$pkgdir" prefix=/usr target=timer install
}