diff options
-rw-r--r-- | .gitignore | 4 | ||||
-rwxr-xr-x[-rw-r--r--] | build/gen_pkgbuild.sh (renamed from PKGBUILD) | 11 |
2 files changed, 13 insertions, 2 deletions
@@ -3,7 +3,9 @@ __pycache__/ epy_reader.egg-info/* .venv .idea -build dist tmp/ .coverage + +build/** +!build/gen_pkgbuild.sh diff --git a/PKGBUILD b/build/gen_pkgbuild.sh index 8dcb08b..d1e2d26 100644..100755 --- a/PKGBUILD +++ b/build/gen_pkgbuild.sh @@ -1,7 +1,14 @@ +#!/bin/bash - + +( +cat << 'EOF' +# Maintainer: Benawi Adha <benawiadha@gmail.com> +# Contributor: Spencer Muise <smuise@spencermuise.ca> + pkgname=epy-git _name=epy provides=('epy') -pkgver=2022.1.8.r204.c1f9b4e +pkgver=EPY_PKGVER pkgrel=1 pkgdesc="CLI Ebook Reader" arch=('any') @@ -33,3 +40,5 @@ package() { cd $_name python setup.py install --root="$pkgdir" --optimize=1 --skip-build } +EOF +) | sed 's/pkgver=EPY_PKGVER/pkgver='`printf "%s.r%s.%s" "$(grep -F '__version__ =' epy.py | awk -F\" '{print $2}')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"`'/' |