archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-mako / trunk / PKGBUILD
blobc8855cb92fdb39d103c3dde37d4da7ffc6701b65
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-mako
4 pkgver=1.2.3
5 pkgrel=1
6 pkgdesc="A super-fast templating language that borrows the best ideas from the existing templating languages"
7 arch=('any')
8 url="https://www.makotemplates.org/"
9 license=('MIT')
10 depends=('python-markupsafe')
11 makedepends=('python-setuptools')
12 # python-lingua isn't packaged
13 checkdepends=('python-pytest' 'python-babel' 'python-beaker' 'python-dogpile.cache'
14               'python-pygments')
15 source=("https://pypi.io/packages/source/M/Mako/Mako-$pkgver.tar.gz"{,.asc})
16 sha512sums=('904b12826b3fc74dec069e1fd4afb67a8a1962d72962c4ee8c9360deb728b8deb40c21e7bf831122ad6b095172a8de015222a97f47675d48d595c8eabd98a14b'
17             'SKIP')
18 validpgpkeys=('83AF7ACE251C13E6BB7DEFBD330239C1C4DAFEE1'   # Michael Bayer
19               '2CA9B722133AF20453401FD1A33AC2044BFDF51E')  # Mako Maintainer
21 build() {
22   cd Mako-$pkgver
23   python setup.py build
26 check() {
27   cd Mako-$pkgver
28   python -m pytest
31 package() {
32   cd Mako-$pkgver
33   python setup.py install --root="$pkgdir" --optimize=1
34   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/