31 lines
779 B
Bash
31 lines
779 B
Bash
|
# 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
|
||
|
}
|
||
|
}
|