summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd7f19810c7f4c01ef7c4d4e50b1907dc77a126f (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
# 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")
source=("https://pypi.python.org/packages/source/t/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('SKIP')
source=("$_pkgname::git://github.com/AnthonyDiGirolamo/todotxt-machine")

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
}