31 lines
794 B
Bash
31 lines
794 B
Bash
# Template file for 'python-magic'
|
|
pkgname=python-magic
|
|
version=0.4.14
|
|
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=287266f5c0b9036bf1feaa3115aed93d8da25e531fc769ffdbd69a437be4057d
|
|
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
|
|
}
|
|
}
|