summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73feb54c556929be986d911b5580d3d4ff656f80 (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: ache <ache@ache.one>

pkgname=todo.c++
pkgver=20170921
pkgrel=1
pkgdesc="A lightweight, by directory, todo-list utility"
arch=("any")
url="http://git.ache.one/todo"
license=('GPL3')
makedepends=('git')
conflicts=('todo.c' 'todo' 'todo.c++')
source=("todo.c++::git+http://git.ache.one/todo")

md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$pkgname"
    git log -1 --format='%cd' --date=short | tr -d -- '-'
}

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

package() {
    cd "$srcdir/$pkgname"
    install -Dm755 "todo" "$pkgdir/usr/bin/todo"
    install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/todo.cpp/LICENSE"
}