From 33c657629bfde0920f477f24fea9955926f4250b Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Mon, 4 May 2020 10:00:40 +0300 Subject: [PATCH] Add 'python-aiofile' Arch Linux PKGBUILD --- arch_linux/python-aiofile/PKGBUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 arch_linux/python-aiofile/PKGBUILD diff --git a/arch_linux/python-aiofile/PKGBUILD b/arch_linux/python-aiofile/PKGBUILD new file mode 100644 index 0000000..613e397 --- /dev/null +++ b/arch_linux/python-aiofile/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Pekka Helenius + +pkgname=python-aiofile +_pkgname=aiofile +pkgver=0.5.3.r59.g6f0fea3 +pkgrel=1 +pkgdesc='Real asynchronous file operations with asyncio support' +arch=('any') +url='https://github.com/mosquito/aiofile' +license=('Apache') +depends=('python') +makedepends=('git' 'python' 'cython') +source=("$pkgname::git+https://github.com/mosquito/${_pkgname}.git") +sha512sums=('SKIP') + +pkgver() { + cd $pkgname + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd $pkgname + python setup.py install --root="$pkgdir/" +}