3879046ab4
Closes: #10095 [via git-merge-pr]
30 lines
794 B
Bash
30 lines
794 B
Bash
# Template file for 'python-magic'
|
|
pkgname=python-magic
|
|
version=0.4.15
|
|
revision=1
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
makedepends="python libmagic"
|
|
short_desc="File type identification using libmagic (Python2)"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/ahupp/python-magic"
|
|
distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
|
|
checksum=6d730389249ab1e34ffb0a3c5beaa44e116687ffa081e0176dab6c59ff271593
|
|
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
|
|
}
|
|
}
|