# Maintainer: Alexey Pavlov <alexpux@gmail.com>

_realname=markupsafe
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.1.1
pkgrel=4
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
arch=('i686' 'x86_64')
license=('custom')
url="https://pypi.python.org/pypi/MarkupSafe"
depends=("python")
makedepends=("python-setuptools")
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
source=("https://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
sha256sums=('29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b')

build() {
  cd "${srcdir}/MarkupSafe-${pkgver}"
  /usr/bin/python setup.py build
}

package() {
  cd "${srcdir}/MarkupSafe-${pkgver}"
  /usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}" -O1
  install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
}