From 31aadeecf434d20f0213737be79ec0e546dda6b5 Mon Sep 17 00:00:00 2001 From: Cameron Nemo Date: Tue, 1 Jan 2019 17:53:16 -0800 Subject: [PATCH] New package: python-astral-1.8 --- srcpkgs/python-astral/template | 26 ++++++++++++++++++++++++++ srcpkgs/python3-astral | 1 + 2 files changed, 27 insertions(+) create mode 100644 srcpkgs/python-astral/template create mode 120000 srcpkgs/python3-astral diff --git a/srcpkgs/python-astral/template b/srcpkgs/python-astral/template new file mode 100644 index 00000000000..b336aff4d0b --- /dev/null +++ b/srcpkgs/python-astral/template @@ -0,0 +1,26 @@ +# Template file for 'python-astral' +pkgname=python-astral +version=1.8 +revision=1 +noarch=yes +wrksrc="${pkgname#python-}-${version}" +build_style=python-module +pycompile_module="astral.py" +hostmakedepends="python python-setuptools python3 python3-setuptools" +depends="python-requests python-pytz" +short_desc="Calculations for the position of the sun and moon (Python2)" +maintainer="Cameron Nemo " +license="Apache-2.0" +homepage="https://github.com/sffjunkie/astral" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=a952d5b52c1a4345940ef165a54e1751b0f1628f17d103a70f62e9f67070399c + +python3-astral_package() { + noarch=yes + pycompile_module="astral.py" + depends="python3-requests python3-pytz" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove "usr/lib/python3*" + } +} diff --git a/srcpkgs/python3-astral b/srcpkgs/python3-astral new file mode 120000 index 00000000000..99f59d4f73b --- /dev/null +++ b/srcpkgs/python3-astral @@ -0,0 +1 @@ +python-astral \ No newline at end of file