summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD31
3 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..f98f64abe8dd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python-charamel
+ pkgdesc = Truly Universal Encoding Detection in Python
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://pypi.org/project/charamel/
+ arch = any
+ license = Apache
+ makedepends = python-setuptools
+ depends = python
+ source = https://files.pythonhosted.org/packages/source/c/charamel/charamel-1.0.0.tar.gz
+ sha256sums = ce0a81979b7602c5ede8449e836119b045a258222a16512c696852c37b1047e5
+
+pkgname = python-charamel
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..574a8578368c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/src
+/pkg
+*.tar.gz
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..5f09ead4e86c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>
+
+_pkgname=charamel
+pkgname=python-charamel
+pkgver=1.0.0
+pkgrel=1
+pkgdesc="Truly Universal Encoding Detection in Python"
+url="https://pypi.org/project/charamel/"
+depends=('python')
+makedepends=('python-setuptools')
+license=('Apache')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
+
+sha256sums=('ce0a81979b7602c5ede8449e836119b045a258222a16512c696852c37b1047e5')
+
+#tests require git-lfs checkout which then also requires python-dephell for converting poetry pyproject.toml
+#check() {
+# cd "${srcdir}"/${_pkgname}-${pkgver}
+# pytest tests
+#}
+
+build() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}