diff options
author | Dan Elkouby | 2018-05-05 14:18:49 +0300 |
---|---|---|
committer | Dan Elkouby | 2018-05-05 14:20:18 +0300 |
commit | 6f0923d62b724da9f64584b69c94da9537385064 (patch) | |
tree | 82f587f21db3242ab85f1b7f9db9d4d402033f24 | |
download | aur-6f0923d62b724da9f64584b69c94da9537385064.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 32 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ffb58ec03df9 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = python-telethon-aio-git + pkgdesc = Pure Python 3 Telegram client library, asyncio version + pkgver = 20180428.d693535 + pkgrel = 1 + url = https://github.com/LonamiWebs/Telethon/ + arch = any + license = MIT + makedepends = python-setuptools + depends = python>=3.5 + depends = python-pyaes + depends = python-rsa + conflicts = python-telethon + options = !emptydirs + source = git+https://github.com/LonamiWebs/Telethon.git + md5sums = SKIP + +pkgname = python-telethon-aio-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..637f67706bb7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/Telethon +/src +/pkg +/*.pkg.tar* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cb1d3657f71c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Dan Elkouby <streetwalrus@codewalr.us> +pkgname=python-telethon-aio-git +pkgver=20180428.d693535 +pkgrel=1 +pkgdesc="Pure Python 3 Telegram client library, asyncio version" +arch=('any') +url="https://github.com/LonamiWebs/Telethon/" +license=('MIT') +depends=('python>=3.5' 'python-pyaes' 'python-rsa') +makedepends=('python-setuptools') +conflicts=('python-telethon') +options=(!emptydirs) +source=("git+https://github.com/LonamiWebs/Telethon.git") +md5sums=('SKIP') + +pkgver() { + cd "${srcdir}/Telethon" + git log -1 --format='%cd.%h' --date=short | tr -d - +} + +build() { + cd "$srcdir/Telethon" + ./setup.py build +} + +package() { + cd "$srcdir/Telethon" + ./setup.py install --root="$pkgdir/" --optimize=1 --skip-build + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst" +} + +# vim:set ts=2 sw=2 et: |