From 68d2ddd928de7045fb6f14b854a5ff89b5990a2e Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 15 Oct 2017 22:25:42 -0200 Subject: [PATCH] New package: python-magic-0.4.13. Closes #8202. --- srcpkgs/python-magic/template | 30 ++++++++++++++++++++++++++++++ srcpkgs/python3-magic | 1 + 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python-magic/template create mode 120000 srcpkgs/python3-magic diff --git a/srcpkgs/python-magic/template b/srcpkgs/python-magic/template new file mode 100644 index 00000000000..cdf0709997a --- /dev/null +++ b/srcpkgs/python-magic/template @@ -0,0 +1,30 @@ +# Template file for 'python-magic' +pkgname=python-magic +version=0.4.13 +revision=1 +build_style=python-module +hostmakedepends="python-setuptools python3-setuptools" +makedepends="python libmagic" +short_desc="File type indetification using libmagic" +maintainer="maxice8 " +license="MIT" +homepage="https://github.com/ahupp/python-magic" +distfiles="${PYPI_SITE}/p/python-magic/python-magic-${version}.tar.gz" +checksum=604eace6f665809bebbb07070508dfa8cabb2d7cb05be9a56706c60f864f1289 +pycompile_module="magic" +noarch=yes + +post_install() { + vlicense LICENSE +} + +python3-magic_package() { + noarch=yes + depends="python3 libmagic" + pycompile_module="magic" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + vlicense LICENSE + } +} diff --git a/srcpkgs/python3-magic b/srcpkgs/python3-magic new file mode 120000 index 00000000000..aee0e39c8c8 --- /dev/null +++ b/srcpkgs/python3-magic @@ -0,0 +1 @@ +python-magic \ No newline at end of file