summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eaa28ec5a76fc8703ef8d3301bf51cb12f51f33f (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
# Maintainer: A Frederick Christensen <fauxmight@nosocomia.com>
# Contributor: Augusto Roccasalva <augusto@rioplomo.com.ar>

_pkgname=todotxt-machine
pkgname=$_pkgname-git
pkgver=bbd6457
pkgrel=2
pkgdesc="Interactive terminal todo.txt file editor with an interface similar to mutt"
url="https://github.com/AnthonyDiGirolamo/todotxt-machine"
arch=('any')
license=('GPL3')
depends=('python' 'python-urwid' 'python-docopt')
makedepends=('python-setuptools' 'git')
conflicts=("$_pkgname")
provides=("$_pkgname")
md5sums=('SKIP')
source=("$_pkgname::git+https://github.com/AnthonyDiGirolamo/todotxt-machine.git")

pkgver() {
  cd $_pkgname
  git describe --always | sed -e 's|-|.|g' -e 's|v||'
}

build() {
  cd "${srcdir}/${_pkgname}"
  python setup.py build
}

package() {
  cd "${srcdir}/${_pkgname}"
  python setup.py install --root="${pkgdir}/" --optimize=1
}