From 98702a298d6bfa18372567bf9227bfe3649fc8be Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 28 May 2018 17:05:11 +0200 Subject: [PATCH] New package: python-tempora-1.11 --- srcpkgs/python-tempora/template | 39 +++++++++++++++++++++++++++++++++ srcpkgs/python3-tempora | 1 + 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/python-tempora/template create mode 120000 srcpkgs/python3-tempora diff --git a/srcpkgs/python-tempora/template b/srcpkgs/python-tempora/template new file mode 100644 index 00000000000..5266fd47901 --- /dev/null +++ b/srcpkgs/python-tempora/template @@ -0,0 +1,39 @@ +# Template file for 'python-tempora' +pkgname=python-tempora +version=1.11 +revision=1 +noarch=yes +wrksrc="tempora-${version}" +build_style=python-module +pycompile_module="tempora" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools python-six python-pytz" +short_desc="Objects and routines pertaining to date and time (Python2)" +maintainer="Andrea Brancaleoni " +license="MIT" +homepage="https://github.com/jaraco/tempora" +distfiles="${PYPI_SITE}/t/tempora/tempora-${version}.tar.gz" +checksum=4be862dbdc6fcbcc57f4b355258daa41fc0932af99680142bfa20836379f57a5 +alternatives="tempora:calc-prorate:/usr/bin/calc-prorate2" + +pre_build() { + sed -i setup.py \ + -e '/setuptools_scm/d' \ + -e "s|use_scm_version=True|version='${version}'|" +} +post_install() { + vlicense LICENSE +} + +python3-tempora_package() { + noarch=yes + pycompile_module="tempora" + depends="python3-setuptools python3-six python3-pytz" + alternatives="tempora:calc-prorate:/usr/bin/calc-prorate3" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-tempora b/srcpkgs/python3-tempora new file mode 120000 index 00000000000..3b48506309a --- /dev/null +++ b/srcpkgs/python3-tempora @@ -0,0 +1 @@ +python-tempora \ No newline at end of file