New package: python3-file-magic-0.4.0

detect_from_content seems broken.
But, at least other packages depends on this package could work now.
Perfect is the enemy of the good.
This commit is contained in:
Đoàn Trần Công Danh 2020-07-13 20:19:18 +07:00
parent ba86d9815a
commit 789131206a
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Template file for 'python3-file-magic'
# Don't merge python3-file-magic into file
_file_ver=5.39
_file_minver=5.34
pkgname=python3-file-magic
version=0.4.0
revision=1
wrksrc=file-${_file_ver}
build_wrksrc=python
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="libmagic>=${_file_minver}_1"
checkdepends="$depends"
short_desc="File type identification utility"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="BSD-2-Clause"
homepage="http://www.darwinsys.com/file/"
distfiles="https://astron.com/pub/file/file-${_file_ver}.tar.gz"
checksum=f05d286a76d9556243d0cb05814929c2ecf3a5ba07963f8f70bfaaa70517fad1
conflicts="python3-magic>=0"
do_check() {
: detect_from_content report application/octet-stream on Python Script
}
post_install() {
vlicense LICENSE
}

View file

@ -0,0 +1,2 @@
site=https://pypi.org/simple/file-magic
pkgname=file-magic