Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=fc4f528150cb73bf1b82e68449445c92576ab524

commit fc4f528150cb73bf1b82e68449445c92576ab524
Author: Baste <[email protected]>
Date:   Tue Oct 3 11:28:52 2017 +0200

chardet3-3.0.4-3-x86_64
- Add python3-chardet subpkg

diff --git a/source/apps-extra/chardet3/FrugalBuild 
b/source/apps-extra/chardet3/FrugalBuild
index ebdec96..cece3fe 100644
--- a/source/apps-extra/chardet3/FrugalBuild
+++ b/source/apps-extra/chardet3/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=chardet3
pkgver=3.0.4
-pkgrel=2
+pkgrel=3
pkgdesc="Character encoding auto-detection in Python 2"
url="https://github.com/byroot/chardet";
depends=("python")
@@ -18,8 +18,21 @@ replaces=("chardet" "python-chardet")
provides=("${replaces[@]}")
conflicts=("${replaces[@]}")

+subpkgs=("python3-$_F_pypi_name")
+subdescs=('Python3 module for character encoding auto-detection.')
+subdepends=('python3>=3.5.2-2')
+subrodepends=('')
+subgroups=('devel')
+subarchs=('x86_64')
+
build()
{
Fcd $_F_archive_name-$pkgver
+       #Python3
+       Fexec python3 setup.py install --root=$Fdestdir --optimize=1 || Fdie
+       Fmv usr/bin/chardetect usr/bin/python3-chardetect
+       Fsplit python3-$_F_pypi_name usr/lib
+       Fsplit python3-$_F_pypi_name usr/bin
+       #Python2
python setup.py install --root=$Fdestdir --optimize=1 || Fdie
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to