aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b246b6ab5802416f3862197c1fa58fa266af4feb (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: Your Name <drmargarido@gmail.com>
pkgname=d-tracker
pkgver=0.12.beta.r9.gbba88b0
pkgrel=1
pkgdesc="Lightweight, cross-platform and simple to setup timetracker. Similar to hamster but uses about 10MB of RAM and has a small quantity of dependencies."
arch=("i686" "x86_64")
url="https://github.com/drmargarido/d-tracker"
license=('MIT')
depends=()
makedepends=("gcc" "automake" "libtool" "git" "libx11" "libxft" "libxext" "libxxf86vm")
source=("git+https://github.com/drmargarido/d-tracker.git")
md5sums=('SKIP')

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

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

check() {
	cd "${srcdir}/${pkgname}"
	make test
}

package() {
	cd "${srcdir}/${pkgname}"
	make install INSTALLDIR="${pkgdir}/usr"
}