summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b02e3913a3b7fc1707d237526ce4ce6d9c6655a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Maintainer: Schwan Carl <schwancarl at protonmail dot com>

pkgname=webnovel-manager-git
pkgver=v1.3.r0.gf4e4b90
pkgrel=1
pkgdesc="Webnovel reader"
arch=('any')
url="https://gitlab.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://gitlab.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
}