aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
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"
+}