From 2a59206a7fecd945f75f3b73cb7e2fb160cbbdef Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Wed, 14 Jun 2017 02:00:46 +0200 Subject: [PATCH] New package: python-automat-0.6.0 --- srcpkgs/python-automat/template | 40 +++++++++++++++++++++++++++++++++ srcpkgs/python3-automat | 1 + 2 files changed, 41 insertions(+) create mode 100644 srcpkgs/python-automat/template create mode 120000 srcpkgs/python3-automat diff --git a/srcpkgs/python-automat/template b/srcpkgs/python-automat/template new file mode 100644 index 0000000000..1c2736e700 --- /dev/null +++ b/srcpkgs/python-automat/template @@ -0,0 +1,40 @@ +# Template file for 'python-automat' +pkgname=python-automat +version=0.6.0 +revision=1 +noarch=yes +wrksrc="Automat-${version}" +build_style=python-module +pycompile_module="automat" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools python-attrs python-six" +short_desc="Finite-state machines in Python (Python2)" +maintainer="Juan RP " +homepage="https://github.com/glyph/Automat" +license="MIT" +distfiles="${PYPI_SITE}/A/Automat/Automat-${version}.tar.gz" +checksum=3c1fd04ecf08ac87b4dd3feae409542e9bf7827257097b2b6ed5692f69d6f6a8 +alternatives="automat:automat-visualize:/usr/bin/automat-visualize2" + +pre_build() { + sed -i setup.py \ + -e '/print(/d' \ + -e '/setup_requires=/,+3d' \ + -e "s/use_scm_version=True/version='${version}'/" +} +post_install() { + vlicense LICENSE +} + +python3-automat_package() { + noarch=yes + pycompile_module="automat" + short_desc="${short_desc/Python2/Python3}" + depends="python3-setuptools python3-attrs python3-six" + alternatives="automat:automat-visualize:/usr/bin/automat-visualize3" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-automat b/srcpkgs/python3-automat new file mode 120000 index 0000000000..2df0fb5b1f --- /dev/null +++ b/srcpkgs/python3-automat @@ -0,0 +1 @@ +python-automat \ No newline at end of file