summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 520c095aeb8c241a795dc2714755579b415589eb (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: Samuel Walladge <samuel@swalladge.id.au>
# Maintainer: Eric Brandwein <brandweineric at gmail dot com>
# Contributor: Eric Davis <edavis@insanum.com>

pkgname=sncli-git
_pkgname=sncli
pkgver=0.4.0.r0.ge2603ef
pkgrel=1
pkgdesc="Simplenote Command Line Interface"
arch=('any')
url="https://github.com/insanum/${_pkgname}"
license=('MIT')
depends=('python-urwid' 'python-requests' 'python-simperium')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/insanum/${_pkgname}.git")
md5sums=('SKIP')

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

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

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

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