58 lines
1.7 KiB
Text
58 lines
1.7 KiB
Text
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
pkgname=calibre-web
|
|
pkgver=0.6.19
|
|
pkgrel=0
|
|
pkgdesc="Web app for browsing, reading and downloading eBooks stored in a Calibre database"
|
|
arch='noarch'
|
|
url="https://github.com/janeczku/calibre-web"
|
|
license='GPL-3.0-only'
|
|
depends="
|
|
python3
|
|
py3-babel
|
|
py3-flask-babel
|
|
py3-flask-login
|
|
py3-flask-principal
|
|
py3-flask
|
|
py3-pypdf2
|
|
py3-tz
|
|
py3-requests
|
|
py3-sqlalchemy
|
|
py3-tornado
|
|
py3-wand
|
|
py3-unidecode
|
|
py3-blinker
|
|
py3-goodreads
|
|
py3-levenshtein
|
|
py3-iso639
|
|
"
|
|
source="
|
|
$pkgname-$pkgver.tar.gz::https://github.com/janeczku/calibre-web/archive/$pkgver.tar.gz
|
|
calibre-web.conf
|
|
calibre-web.initd
|
|
"
|
|
options="!check" # No testsuite
|
|
subpackages="$pkgname-openrc"
|
|
pkgusers="calibre-web"
|
|
pkggroups="www-data"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' cps.py
|
|
}
|
|
|
|
package() {
|
|
local wwwdir="/usr/share/webapps/$pkgname"
|
|
|
|
install -d -m 755 "$pkgdir"/$wwwdir
|
|
cp -a "$srcdir"/$pkgname-$pkgver "$pkgdir"/$wwwdir
|
|
|
|
install -D -m 755 "$srcdir"/calibre-web.initd "$pkgdir"/etc/init.d/calibre-web
|
|
install -D -m 644 "$srcdir"/calibre-web.conf "$pkgdir"/etc/conf.d/calibre-web
|
|
}
|
|
sha512sums="
|
|
a69706c7615576f2ddc94dc1e5b30808dfe84d7d79558e018fa65daef34a6294afb27170d97536e2a350fb664719b3f1ad3d1cefc07297a371d18dce4e43e6be calibre-web-0.6.19.tar.gz
|
|
4aba825eb12f44eb0912cc6981b46bec9b77ad114627564c9c7585862a099c7d1ff8deec5f15d047319805e2b9a3e2d128b2d1292dd92293a7e72359009a480f calibre-web.conf
|
|
62859a8a304216dc0dbfb7f2e8144a50d348c6621f5b292c08aa97a872ada67b52d36b567546fd0f4c439dbefe0bbe0e4fb1e1affbe507278b4a8d36ed3fa2a9 calibre-web.initd
|
|
"
|