New package: python-magic-0.4.13.

Closes #8202.
This commit is contained in:
maxice8 2017-10-15 22:25:42 -02:00 committed by Enno Boland
parent ba5557fe60
commit 68d2ddd928
2 changed files with 31 additions and 0 deletions

View file

@ -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 <thinkabit.ukim@gmail.com>"
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
}
}

1
srcpkgs/python3-magic Symbolic link
View file

@ -0,0 +1 @@
python-magic