mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Contributor: Paul Kilar <pkilar@gmail.com>
|
|
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
|
|
# Maintainer: Paul Kilar <pkilar@gmail.com>
|
|
pkgname=py3-pystache
|
|
_realname=pystache
|
|
pkgver=0.5.4
|
|
pkgrel=2
|
|
pkgdesc="Pystache is a Python implementation of Mustache."
|
|
url="https://pypi.python.org/pypi/pystache"
|
|
arch="noarch"
|
|
license="MIT"
|
|
replaces="py-pystache" # For backwards compatibility
|
|
provides="py-pystache=$pkgver-r$pkgrel" # For backwards compatibility
|
|
depends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_realname:0:1}/$_realname/$_realname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_realname-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# This package uses 2to3 to convert itself to Python 3 on the fly
|
|
# So we need to jump through some hoops here
|
|
mkdir -p test_dir
|
|
python3 setup.py install --root=test_dir
|
|
PYTHONPATH=test_dir/usr/lib/python3.7/site-packages test_dir/usr/bin/pystache-test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="4ac325e1431f58f740218c9ec309821db82d89989ef4ca7fc3536dea0ef1c90e8e85ebaa7df27f33129ca02252b84bcbd7429a1ed999b496f62f174dd66502cb pystache-0.5.4.tar.gz"
|
|
|