OCaml 4.14.0 rebuild
[arch-packages.git] / python-markupsafe / trunk / PKGBUILD
blob5ecddc770af81b9a462047a41e8be1dfaeb3516e
1 # Maintainer : Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Alex Anthony <alex.anthony28991@gmail.com>
5 pkgname=python-markupsafe
6 pkgver=2.1.1
7 pkgrel=1
8 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
9 arch=('x86_64')
10 url="https://pypi.python.org/pypi/MarkupSafe"
11 license=('BSD')
12 depends=('python')
13 makedepends=('python-setuptools')
14 checkdepends=('python-pytest-runner')
15 source=("https://github.com/pallets/markupsafe/archive/$pkgver/$pkgname-$pkgver.tar.gz")
16 sha512sums=('6b06a5f470858409eb186d20edd129be90f31030be91fcc73e989b0a4ee51c3755cce0938edd9a7c73471d307385260f868101b5e11cc4d97c309420b5a573da')
18 build() {
19   cd markupsafe-$pkgver
20   python setup.py build
23 check() {
24   cd markupsafe-$pkgver
25   python setup.py pytest
28 package() {
29   cd markupsafe-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1
32   install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE.rst