diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 17:28:17 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 17:28:17 -0500 |
commit | 1fdd6e1d01436611217b6738fdc997e5af4a342b (patch) | |
tree | 7233fab85c1462915350a5cf30124f4d6438c290 /user/py-mako/APKBUILD | |
parent | b7c1783e11101b34e7014a1bcdfd41f9673a6a10 (diff) | |
download | packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.gz packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.bz2 packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.xz packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.zip |
move consolekit2, py*, wine to user/
Diffstat (limited to 'user/py-mako/APKBUILD')
-rw-r--r-- | user/py-mako/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/user/py-mako/APKBUILD b/user/py-mako/APKBUILD new file mode 100644 index 000000000..2ef83e096 --- /dev/null +++ b/user/py-mako/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-mako +_pkgname=Mako +pkgver=1.0.7 +pkgrel=0 +pkgdesc="A Python fast templating language" +url="http://www.makotemplates.org/" +arch="noarch" +license="MIT" +depends="" +makedepends="python3-dev" +checkdepends="py-six" +subpackages="py3-${pkgname#py-}:_py3" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir"/$_pkgname-$pkgver + +build() { + cd "$builddir" + python3 setup.py build +} + +package() { + mkdir -p "$pkgdir" +} + +check() { + cd "$builddir" + python3 setup.py test +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +sha512sums="d67af6788bf8603010361ce8b6d0355b0191657c07f3b5845f9d5e91653c3e349a7b35d5b36aa9c7f291973c83911ce94075e1cad78e6935d0ed4ee9c6e2a571 Mako-1.0.7.tar.gz" |