summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorC. Dominik Bódi2021-01-29 16:06:35 +0100
committerC. Dominik Bódi2021-01-29 16:06:35 +0100
commitece1babbd32ae5d3afe1ed071104e857b39b1474 (patch)
tree01d4be066c50ffd0f1877803489d3f5c8a806819
downloadaur-ece1babbd32ae5d3afe1ed071104e857b39b1474.tar.gz
* initial AUR submission
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD30
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5d7e2d37191
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = python-johnnycanencrypt-git
+ pkgdesc = Python module for OpenPGP written in Rust
+ pkgver = r241.1e6f386
+ pkgrel = 1
+ url = https://github.com/kushaldas/johnnycanencrypt
+ arch = any
+ license = GPL
+ makedepends = git
+ makedepends = maturin
+ makedepends = python-pip
+ depends = mypy
+ depends = python-httpx
+ provides = python-johnnycanencrypt
+ source = git+https://github.com/kushaldas/johnnycanencrypt
+ sha256sums = SKIP
+
+pkgname = python-johnnycanencrypt-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c091ac43f5b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: C. Dominik Bódi <dominik dot bodi at gmx dot de>
+pkgname=python-johnnycanencrypt-git
+_pkgbase=johnnycanencrypt
+pkgver=r241.1e6f386
+pkgrel=1
+epoch=
+pkgdesc="Python module for OpenPGP written in Rust"
+arch=('any')
+url="https://github.com/kushaldas/johnnycanencrypt"
+license=('GPL')
+depends=(mypy
+ python-httpx)
+makedepends=(git
+ maturin
+ python-pip)
+provides=(python-johnnycanencrypt)
+source=("git+https://github.com/kushaldas/$_pkgbase")
+sha256sums=('SKIP')
+pkgver() {
+ cd "$_pkgbase"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+build() {
+ cd "$_pkgbase"
+ maturin build --release --no-sdist --manylinux off
+}
+package() {
+ cd "$_pkgbase/target/wheels"
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps --compile *.whl
+}