upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / python-latexcodec / trunk / PKGBUILD
blob2b0f3d61f6ca0b22887a8f17d3fcd509bc0bde8d
1 # Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
2 # Contributor: Patrice Peterson <runiq at archlinux dot us>
4 _pkgname=latexcodec
5 pkgname=python-${_pkgname}
6 pkgver=2.0.1
7 pkgrel=6
8 pkgdesc="A lexer and codec to work with LaTeX code in Python"
9 arch=('any')
10 url="https://github.com/mcmtroffaes/latexcodec"
11 license=('MIT')
12 depends=('python-six')
13 makedepends=('python-setuptools')
14 checkdepends=('python-nose' 'python-pytest')
15 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
16 sha256sums=('eda36ddfc969f86c9a8fdd50c12b484fa42dbfa33b84422144643b60081ca022')
18 build() {
19   cd "${srcdir}/${_pkgname}-${pkgver}"
20   python setup.py build
23 check() {
24   cd "${srcdir}/${_pkgname}-${pkgver}"
25   nosetests
28 package() {
29   cd "${srcdir}/${_pkgname}-${pkgver}"
30   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
31   install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"