New package: python-filetype-1.0.5
closes #10625 Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
parent
2ef4054a76
commit
b7872d6380
2 changed files with 34 additions and 0 deletions
33
srcpkgs/python-filetype/template
Normal file
33
srcpkgs/python-filetype/template
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
# Template file for 'python-filetype'
|
||||||
|
pkgname=python-filetype
|
||||||
|
version=1.0.5
|
||||||
|
revision=1
|
||||||
|
archs=noarch
|
||||||
|
wrksrc="filetype-${version}"
|
||||||
|
build_style=python-module
|
||||||
|
pycompile_module="filetype"
|
||||||
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
|
depends="python"
|
||||||
|
short_desc="Python2 package to infer file types"
|
||||||
|
maintainer="xaltsc <xaltsc@protonmail.ch>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="https://github.com/h2non/filetype.py"
|
||||||
|
distfiles="${PYPI_SITE}/f/filetype/filetype-${version}.tar.gz"
|
||||||
|
checksum=17a3b885f19034da29640b083d767e0f13c2dcb5dcc267945c8b6e5a5a9013c7
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense LICENSE
|
||||||
|
rm -rf ${DESTDIR}/${py3_sitelib}/examples
|
||||||
|
rm -rf ${DESTDIR}/${py2_sitelib}/examples
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-filetype_package() {
|
||||||
|
archs=noarch
|
||||||
|
pycompile_module="filetype"
|
||||||
|
depends="python3"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/lib/python3*
|
||||||
|
vlicense LICENSE
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-filetype
Symbolic link
1
srcpkgs/python3-filetype
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-filetype
|
Loading…
Add table
Add a link
Reference in a new issue