summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Hoffmann2020-03-17 22:52:34 +0100
committerMarcus Hoffmann2020-03-17 22:52:34 +0100
commit7d98cd0bae3cacd2205ae12846c2eaab559b3088 (patch)
tree6134c8ac4c26d5dd3c5f598c5553f51873370de7
downloadaur-7d98cd0bae3cacd2205ae12846c2eaab559b3088.tar.gz
initial version
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD32
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..44079fe7524
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-cryptg
+ pkgdesc = Cryptographic utilities for Telegram, designed to use with Telethon.
+ pkgver = 0.2
+ pkgrel = 1
+ url = https://github.com/alisaifee/limits/
+ arch = any
+ license = CC0
+ makedepends = python-setuptools
+ makedepends = libffi
+ depends = python
+ depends = python-cffi
+ source = https://github.com/cher-nov/cryptg/archive/0.2.tar.gz
+ source = https://github.com/cher-nov/tiny-AES-c/archive/f8507b9f226416ba1f5d452ecaaf37a2fae982c3.zip
+ sha256sums = c3050874bfeff2c57c940dafb3dad0b96917e067ff98acad4aa73dd898c30758
+ sha256sums = dfb0c7c2977ca018d8eff581319b959c4b72b5f59b2fc706519224edca591094
+
+pkgname = python-cryptg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fb3f3b8c06a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Marcus Hoffmann <bubu@bubu1.eu>
+
+pkgname=python-cryptg
+pkgver=0.2
+pkgrel=1
+pkgdesc="Cryptographic utilities for Telegram, designed to use with Telethon."
+url="https://github.com/alisaifee/limits/"
+depends=('python' 'python-cffi')
+makedepends=('python-setuptools' 'libffi')
+license=('CC0')
+arch=('any')
+source=("https://github.com/cher-nov/cryptg/archive/${pkgver}.tar.gz"
+ "https://github.com/cher-nov/tiny-AES-c/archive/f8507b9f226416ba1f5d452ecaaf37a2fae982c3.zip")
+
+sha256sums=('c3050874bfeff2c57c940dafb3dad0b96917e067ff98acad4aa73dd898c30758'
+ 'dfb0c7c2977ca018d8eff581319b959c4b72b5f59b2fc706519224edca591094')
+
+prepare() {
+ rmdir ${srcdir}/cryptg-${pkgver}/share/tiny-AES-c
+ mv tiny-AES-c-f8507b9f226416ba1f5d452ecaaf37a2fae982c3/ ${srcdir}/cryptg-${pkgver}/share/tiny-AES-c
+# unzip -d ${srcdir}/cryptg-${pkgver}/share/tiny-AES-c f8507b9f226416ba1f5d452ecaaf37a2fae982c3.zip
+}
+
+build() {
+ cd "${srcdir}/cryptg-${pkgver}"
+ python setup.py build
+}
+
+package() {
+ cd "${srcdir}/cryptg-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}