summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorj.r2020-06-23 22:27:51 +0200
committerj.r2020-06-23 22:27:51 +0200
commit67e3463df2b750a44074f1145a41e470dcff0578 (patch)
treedc2f46eeace225696fadd4d40f40330c75fa3f14
downloadaur-67e3463df2b750a44074f1145a41e470dcff0578.tar.gz
Init package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD39
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..af4200d05d1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = telegram-tg-git
+ pkgdesc = terminal telegram client that really works
+ pkgver = r299.73bb8b2
+ pkgrel = 1
+ url = https://github.com/paul-nameless/tg
+ arch = any
+ license = Unlicense
+ makedepends = git
+ makedepends = python-dephell
+ depends = python-telegram
+ depends = python3
+ provides = telegram-tg
+ conflicts = telegram-tg
+ source = telegram-tg::git+https://github.com/paul-nameless/tg.git
+ md5sums = SKIP
+
+pkgname = telegram-tg-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9f496902862
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: j.r <j.r@jugendhacker.de>
+_pkgname=telegram-tg
+pkgname=$_pkgname-git
+pkgver=r299.73bb8b2
+pkgrel=1
+pkgdesc="terminal telegram client that really works"
+arch=(any)
+url="https://github.com/paul-nameless/tg"
+license=('Unlicense')
+depends=('python-telegram' 'python3')
+makedepends=('git' 'python-dephell')
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("$_pkgname::git+https://github.com/paul-nameless/tg.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+
+ python3 setup.py build
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+
+ python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}