From cce55bd5493663ef45d1388dadd07e98912be144 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Thu, 1 Dec 2016 12:42:27 -0600 Subject: [PATCH] New package: python-yamllint-1.6.0 --- srcpkgs/python-yamllint/template | 29 +++++++++++++++++++++++++++++ srcpkgs/python3-yamllint | 1 + 2 files changed, 30 insertions(+) create mode 100644 srcpkgs/python-yamllint/template create mode 120000 srcpkgs/python3-yamllint diff --git a/srcpkgs/python-yamllint/template b/srcpkgs/python-yamllint/template new file mode 100644 index 00000000000..e7d80040411 --- /dev/null +++ b/srcpkgs/python-yamllint/template @@ -0,0 +1,29 @@ +# Template file for 'python-yamllint' +pkgname=python-yamllint +version=1.6.0 +revision=1 +noarch=yes +wrksrc="yamllint-${version}" +build_style=python-module +pycompile_module="yamllint" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-yaml" +short_desc="A Python2 linter for YAML files" +maintainer="Joseph LaFreniere " +homepage="https://github.com/adrienverge/yamllint" +license="GPL-3" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=4e7ea55142fdfc247bb01711962bae852136bf56ddfdd1d66e07eff355d9969e +alternatives="yamllint:yamllint:/usr/bin/yamllint2" + +python3-yamllint_package() { + noarch=yes + depends="python3-yaml" + pycompile_module="yamllint" + short_desc="${short_desc/Python2/Python3}" + alternatives="yamllint:yamllint:/usr/bin/yamllint3" + pkg_install() { + vmove usr/bin/*3 + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-yamllint b/srcpkgs/python3-yamllint new file mode 120000 index 00000000000..9ac95fe79f9 --- /dev/null +++ b/srcpkgs/python3-yamllint @@ -0,0 +1 @@ +python-yamllint \ No newline at end of file