summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cdaf205dcf45a773f6759eba147cd5e45c55fb3 (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
# Maintainer: wenLiangcan <boxeed at gmail dot com>
# Contributor: Rafael Beraldo <rafaelluisberaldo@gmail.com>

pkgname=todo.c-git
pkgver=20130905
pkgrel=1
pkgdesc="Command line lightweight todo tool with readable storage , written in C"
arch=("any")
url="https://github.com/hit9/todo.c"
license=('BSD')
makedepends=('git')
provides=('todo.c=${pkgver}')
conflicts=('todo.c' 'todo')
source=("$pkgname"::'git://github.com/hit9/todo.c.git')
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 "src/todo" "$pkgdir/usr/bin/todo"
    install -Dm644 "LICENSE-BSD" "$pkgdir/usr/share/licenses/todo.c/LICENSE-BSD"
}