summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel Margarido2020-02-05 01:13:55 +0000
committerDaniel Margarido2020-02-05 01:13:55 +0000
commit655ce38742ef49da340efcf903ddb07a56370f57 (patch)
tree5c9ab5051102ded11cb099c0fb097444b1168953 /PKGBUILD
downloadaur-655ce38742ef49da340efcf903ddb07a56370f57.tar.gz
Created the base to setup and install the d-tracker using the AUR.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b246b6ab580
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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"
+}