From 33d6d11d4008572c1868295794ffdc891e815a24 Mon Sep 17 00:00:00 2001 From: xaltsc <41400742+xaltsc@users.noreply.github.com> Date: Sat, 6 Apr 2019 02:59:41 +0200 Subject: [PATCH] New package: python-arxiv2bib-1.0.8 closes #10628 Co-authored-by: maxice8 --- srcpkgs/python-arxiv2bib/template | 35 +++++++++++++++++++++++++++++++ srcpkgs/python3-arxiv2bib | 1 + 2 files changed, 36 insertions(+) create mode 100644 srcpkgs/python-arxiv2bib/template create mode 120000 srcpkgs/python3-arxiv2bib diff --git a/srcpkgs/python-arxiv2bib/template b/srcpkgs/python-arxiv2bib/template new file mode 100644 index 00000000000..90698cc4beb --- /dev/null +++ b/srcpkgs/python-arxiv2bib/template @@ -0,0 +1,35 @@ +# Template file for 'python-arxiv2bib' +pkgname=python-arxiv2bib +version=1.0.8 +revision=1 +archs=noarch +wrksrc="arxiv2bib-${version}" +build_style=python-module +pycompile_module="arxiv2bib" +hostmakedepends="python-setuptools python3-setuptools" +depends="python-setuptools" +short_desc="Python2 package to infer file types" +maintainer="xaltsc " +license="BSD-3-Clause" +homepage="http://nathangrigg.github.io/arxiv2bib" +distfiles="${PYPI_SITE}/a/arxiv2bib/arxiv2bib-${version}.tar.gz" +checksum=137608ed8aa4da6594350152964b9b0f46c6efcb07f8a4dfd50309c968b647a8 +alternatives="arxiv2bib:arxiv2bib:/usr/bin/arxiv2bib2" + +post_install() { + sed -n '3,28p' arxiv2bib.py > LICENSE + vlicense LICENSE +} + +python3-arxiv2bib_package() { + archs=noarch + pycompile_module="arxiv2bib.py" + alternatives="arxiv2bib:arxiv2bib:/usr/bin/arxiv2bib3" + depends="python3-setuptools" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vmove usr/bin/*3 + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-arxiv2bib b/srcpkgs/python3-arxiv2bib new file mode 120000 index 00000000000..6dea3caf912 --- /dev/null +++ b/srcpkgs/python3-arxiv2bib @@ -0,0 +1 @@ +python-arxiv2bib \ No newline at end of file