summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d737d30c8dabd9a75220fe83e6e24646ac57de6 (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
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Jenya Sovetkin <e dot sovetkin at gmail dot com>
pkgname=tudu-git
pkgver=r264.f87d30d
pkgrel=1
pkgdesc="ncurses-based hierarchical todo list manager with vim-like keybindings"
arch=('i686' 'x86_64')
url="https://gitlab.com/tudu/tudu.git"
license=('GPL')
depends=('ncurses')
makedepends=('git' 'gcc')
provides=('tudu')
conflicts=('tudu')
replaces=()
backup=()
options=()
install=
source=('git+https://gitlab.com/tudu/tudu.git')
noextract=()
md5sums=('SKIP')

_gitname=tudu

pkgver() {
  cd "${srcdir}/${_gitname}"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build () {
  cd "$srcdir/$_gitname"

  ./configure --prefix=/usr --sysconfdir=/etc
  make
}

package() {
  cd "$srcdir/$_gitname"

  make DESTDIR=$pkgdir install
  install -vDm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: