#!/bin/sh
#
# Copyright (c) 2019 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

PKGNAME=py-markupsafe
PKGVERSION=1.1.1
PKGREVISION=1
PKGLICENSE="BSD3CLAUSE"
PKGSUMMARY="safely add untrusted strings to HTML/XML markup"
PKGDOWNLOAD="https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-$PKGVERSION.tar.gz"
PKGDEPENDS="python py-setuptools"

build()
{
	rm -rf MarkupSafe-$PKGVERSION
	tar xvf MarkupSafe-$PKGVERSION.tar.gz
	cd MarkupSafe-$PKGVERSION

	python setup.py build
	python setup.py install --root=$DESTDIR --prefix=/.

	cd ..
	rm -rf MarkupSafe-$PKGVERSION
}
