diff --git a/lib/python.py b/lib/python.py index 2939330..4d897fe 100644 --- a/lib/python.py +++ b/lib/python.py @@ -32,7 +32,7 @@ def _depcommon(s: str): if ")" in s: return s.replace(")", f", +python{PY3_VERSION})") else: - return s.replace(".py", f" (+python{PY3_VERSION})") + return s.replace(".py", f".py (+python{PY3_VERSION})") else: return None diff --git a/packages/Mako-py/pkgbuild.py b/packages/Mako-py/pkgbuild.py new file mode 100644 index 0000000..b3aec6a --- /dev/null +++ b/packages/Mako-py/pkgbuild.py @@ -0,0 +1,29 @@ +import os + +from lib.make import * +from lib import python + + +python.version("1.4.1") +description("A super-fast templating language that borrows the best ideas from the existing templating languages.") +maintainer("sisungo ") +source_url("https://files.pythonhosted.org/packages/2a/12/b5fa2353e2754cd67fb9f83793fa48ff42c213a5da7e719869d2301f6ab8/mako-1.4.1.tar.gz") + +python.builddep("$shortcut") +python.builddep("MarkupSafe.py") + + +def build(): + python.build() + python.install() + os.chdir("lib") + while len(os.listdir(".")) == 1: + os.chdir(os.listdir(".")[0]) + +on_build(build) + + +package("Mako.py") +python.dep("python") +python.dep("MarkupSafe.py") +python.use_auto_pack()