summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0ba990e5b23ac7cdafe9a9a899621b5fed6852f2 (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
# Maintainer: Ismaƫl Bouya <ismael.bouya@normalesup.org>

_pkgname=terminal_velocity
pkgname=terminal_velocity-git
pkgver=0.1a7.r21.gbb2000b
pkgrel=2
pkgdesc="A fast note-taking app for the UNIX terminal (patched)"
arch=('any')
url="https://github.com/vhp/terminal_velocity"
license=('GPL')
depends=("python2-urwid" "python2-chardet")
makedepends=('git')
source=(
  'git://github.com/vhp/terminal_velocity.git'
  '002_sort_found_notes.patch'
)
sha1sums=('SKIP'
          'fb82f0ce20b6b529292753f630d499d40ddcc14b')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$srcdir/$_pkgname"
  patch -p1 < ../../002_sort_found_notes.patch
  python2 setup.py build
}

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