diff options
author | benadha <benawiadha@gmail.com> | 2022-01-08 11:44:29 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-01-08 11:44:29 +0700 |
commit | 7b32115e763f73521875f6bc9a2c4784395ff8b3 (patch) | |
tree | 37c6e0d9fc9890c579be005026d46bf791c238ea | |
parent | b8675a7b4ca05da78ab45735eca40cf66c3578cb (diff) | |
download | epy-7b32115e763f73521875f6bc9a2c4784395ff8b3.tar.gz |
Added PKGBUILD for Arch
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..8a2418b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Benawi Adha <echo YmVuYXdpYWRoYUBnbWFpbC5jb20K | base64 -d> + +pkgname=epy-git +pkgver=2022.1.8.r194.7e4a230 +pkgrel=1 +pkgdesc="CLI Ebook Reader" +arch=("any") +url="https://github.com/wustho/epy" +license=("GPL3") +provides=("epy") +conflicts=("epy") +makedepends=('python-setuptools') +source=("git+https://github.com/wustho/epy.git") +md5sums=("SKIP") + +pkgver() { + cd "$srcdir/${pkgname/-git/}" + printf "%s.r%s.%s" "$(grep -F '__version__ =' epy.py | awk -F\" '{print $2}')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$srcdir/${pkgname/-git/}" + python setup.py install --root="$pkgdir" +} |