31 lines
850 B
Bash
31 lines
850 B
Bash
# Template file for 'python3-magic'
|
|
pkgname=python3-magic
|
|
version=0.4.24
|
|
revision=2
|
|
wrksrc=python-magic-$version
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
makedepends="libmagic"
|
|
depends="python3"
|
|
short_desc="File type identification using libmagic (Python3)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/ahupp/python-magic"
|
|
changelog="https://raw.githubusercontent.com/ahupp/python-magic/master/CHANGELOG"
|
|
distfiles="https://github.com/ahupp/python-magic/archive/${version}.tar.gz"
|
|
checksum=48b70b62caa8b911c8c79a1d06ab618037f00d09ac891b7490d0d890ff6e0632
|
|
|
|
do_check() {
|
|
cd test/
|
|
# based on test/run.py but that requires python2 and other ugly things
|
|
(
|
|
export LC_ALL=en_US.UTF-8 PYTHONPATH=..
|
|
python3 test.py
|
|
python3 libmagic_test.py
|
|
)
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|