summaryrefslogtreecommitdiffstats
path: root/dijo-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'dijo-git/PKGBUILD')
-rw-r--r--dijo-git/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/dijo-git/PKGBUILD b/dijo-git/PKGBUILD
new file mode 100644
index 0000000..75931d7
--- /dev/null
+++ b/dijo-git/PKGBUILD
@@ -0,0 +1,34 @@
1# Maintainer: Yigit Sever <yigit at yigitsever dot com>
2# Contributor: quininer <quininer at live dot com>
3
4pkgname='dijo-git'
5_pkgname="dijo"
6pkgver=0.2.7.191.gbe6e0e3
7pkgrel=1
8arch=('x86_64' 'i686')
9url="https://github.com/NerdyPepper/dijo"
10pkgdesc="scriptable, curses-based, digital habit tracker"
11license=('MIT')
12depends=()
13makedepends=('rust' 'cargo' 'git')
14checkdepends=()
15provides=('dijo')
16conflicts=('dijo')
17source=("$_pkgname::git+https://github.com/NerdyPepper/dijo.git")
18sha256sums=('SKIP')
19
20pkgver() {
21 cd $_pkgname
22 echo "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
23}
24
25build(){
26 cd "$_pkgname"
27 cargo build --release --locked
28}
29
30package() {
31 cd $_pkgname
32 install -D -m755 "target/release/dijo" "$pkgdir/usr/bin/dijo"
33 install -D -m644 "dijo.1" "$pkgdir/usr/share/man/man1/dijo.1"
34}