diff --git a/srcpkgs/python3-file-magic/template b/srcpkgs/python3-file-magic/template new file mode 100644 index 0000000000..8a6c0dd96b --- /dev/null +++ b/srcpkgs/python3-file-magic/template @@ -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 " +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 +} diff --git a/srcpkgs/python3-file-magic/update b/srcpkgs/python3-file-magic/update new file mode 100644 index 0000000000..ede7010028 --- /dev/null +++ b/srcpkgs/python3-file-magic/update @@ -0,0 +1,2 @@ +site=https://pypi.org/simple/file-magic +pkgname=file-magic