From 789131206a1761fa9e787b02907dd7106b749391 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 13 Jul 2020 20:19:18 +0700 Subject: [PATCH] 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. --- srcpkgs/python3-file-magic/template | 31 +++++++++++++++++++++++++++++ srcpkgs/python3-file-magic/update | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/python3-file-magic/template create mode 100644 srcpkgs/python3-file-magic/update diff --git a/srcpkgs/python3-file-magic/template b/srcpkgs/python3-file-magic/template new file mode 100644 index 00000000000..8a6c0dd96b5 --- /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 00000000000..ede7010028a --- /dev/null +++ b/srcpkgs/python3-file-magic/update @@ -0,0 +1,2 @@ +site=https://pypi.org/simple/file-magic +pkgname=file-magic