diff options
author | Carl Schwan | 2018-04-20 14:27:25 +0200 |
---|---|---|
committer | Carl Schwan | 2018-04-20 14:27:25 +0200 |
commit | d852ce1f3cb9d10cf55f5b43a2ff4d5be6a9448e (patch) | |
tree | 300bf5e76b06bb35bd66613918ba51a56ea04658 /PKGBUILD | |
download | aur-d852ce1f3cb9d10cf55f5b43a2ff4d5be6a9448e.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b6417e537f94 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# Maintainer: Schwan Carl <schwancarl at protonmail dot com> + +pkgname=webnovel-manager-git +pkgver=v0.1.7.r0.g5d97243 +pkgrel=1 +pkgdesc="Webnovel reader" +arch=('any') +url="https://github.com/ognarb/webnovel-manager" +license=('GPL3') +depends=('python' 'python-pyqt5' 'python-requests' 'python-fuzzywuzzy' 'python-click' 'python-beautifulsoup4') +makedepends=('git' 'python-setuptools') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+https://github.com/ognarb/webnovel-manager.git") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/${pkgname%-git}" + python setup.py build +} + +package() { + cd "${srcdir}/${pkgname%-git}" + python setup.py install --root="$pkgdir/" --optimize=1 --skip-build +} |