ayaports/user/calibre-web/APKBUILD

64 lines
1.7 KiB
Text
Raw Normal View History

2023-01-10 19:16:39 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
pkgname=calibre-web
2023-04-01 15:41:40 +00:00
pkgver=0.6.20
2021-11-30 21:44:44 +00:00
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"
2023-01-10 19:16:39 +00:00
license='GPL-3.0-only'
depends="
2023-04-01 15:41:40 +00:00
py3-apscheduler
2023-01-10 19:16:39 +00:00
py3-babel
2023-04-01 15:41:40 +00:00
py3-backports-abc
py3-blinker
py3-chardet
2023-01-10 19:16:39 +00:00
py3-flask-babel
py3-flask-login
2023-04-01 15:41:40 +00:00
py3-flask-limiter
2023-01-10 19:16:39 +00:00
py3-flask-principal
2023-04-01 15:41:40 +00:00
py3-flask-wtf
py3-goodreads
py3-levenshtein
py3-iso639
py3-lxml
2023-01-10 19:16:39 +00:00
py3-pypdf2
py3-requests
py3-sqlalchemy
py3-tornado
2023-04-01 15:41:40 +00:00
py3-tz
2023-01-10 19:16:39 +00:00
py3-unidecode
2023-04-01 15:41:40 +00:00
py3-wand
py3-werkzeug
2023-01-10 19:16:39 +00:00
"
2021-11-30 21:44:44 +00:00
source="
2023-01-10 19:16:39 +00:00
$pkgname-$pkgver.tar.gz::https://github.com/janeczku/calibre-web/archive/$pkgver.tar.gz
calibre-web.conf
calibre-web.initd
"
options="!check" # No testsuite
2021-11-30 21:44:44 +00:00
subpackages="$pkgname-openrc"
2023-01-10 19:16:39 +00:00
pkgusers="calibre-web"
pkggroups="www-data"
2021-11-30 21:44:44 +00:00
prepare() {
2023-01-10 19:16:39 +00:00
default_prepare
sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python3|' cps.py
2021-11-30 21:44:44 +00:00
}
package() {
2023-04-01 15:41:40 +00:00
local wwwdir="/usr/share/webapps"
2023-01-10 19:16:39 +00:00
install -d -m 755 "$pkgdir"/$wwwdir
2023-04-01 15:41:40 +00:00
cp -a "$srcdir"/$pkgname-$pkgver "$pkgdir"/$wwwdir/$pkgname
2021-11-30 21:44:44 +00:00
2023-01-10 19:16:39 +00:00
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
2021-11-30 21:44:44 +00:00
}
sha512sums="
2023-04-01 15:41:40 +00:00
19111905fd52421e2f62b29cb4e339ad6607d38f8d5f8b45f9a4e620132b1e487a0404aa0d2da89bfc61bb2ea5f020d38d3bf83d2be37c03d91ddd5bb841508f calibre-web-0.6.20.tar.gz
2023-01-10 19:16:39 +00:00
4aba825eb12f44eb0912cc6981b46bec9b77ad114627564c9c7585862a099c7d1ff8deec5f15d047319805e2b9a3e2d128b2d1292dd92293a7e72359009a480f calibre-web.conf
62859a8a304216dc0dbfb7f2e8144a50d348c6621f5b292c08aa97a872ada67b52d36b567546fd0f4c439dbefe0bbe0e4fb1e1affbe507278b4a8d36ed3fa2a9 calibre-web.initd
2021-11-30 21:44:44 +00:00
"