summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c3a5cdfdf66409cd8bad4c049abb192c65e85bc (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
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: Rhys Perry <rhysperry111@gmail.com>
# Maintainer: katt <magunasu.b97@gmail.com>

pkgname=komga
pkgver=1.15.1
pkgrel=1
pkgdesc='Media server for comics/mangas/BDs with API and OPDS support'
arch=(any)
url=https://komga.org
license=(MIT)
depends=('java-runtime-headless>=17')
optdepends=('libjxl: JPEG XL support'
            'kepubify: EPUB to KEPUB conversion')
backup=(etc/${pkgname}.conf)
install=${pkgname}.install
source=("https://github.com/gotson/komga/releases/download/${pkgver}/${pkgname}-${pkgver}.jar"
        "${pkgname}-${pkgver}-LICENSE::https://raw.githubusercontent.com/gotson/komga/${pkgver}/LICENSE"
        "${pkgname}"
        "${pkgname}.env"
        "${pkgname}.install"
        "${pkgname}.service"
        "${pkgname}.sysusers"
        "${pkgname}.tmpfiles")
sha256sums=('1afd00696dda4e32e3340cc2e4524c55fbd9c88376ddeccfa51935e4e63228ab'
            '0c34b357f56a8d8947e5bf153d8a02ca378611f089d8a3c371667f28c223653f'
            'ea583b007a654b24e96838033ae1ce01bd66a0aacf4bda429bb8bbec1bf400ef'
            'a0265a0b8ee1bc887033830c21915939efb6872337dccd5b79edb4ca9e403c1d'
            '16bde60b72dd632304e89d3c7f032555c848a7add3ad43da6640c34338320fe1'
            'afab9337acdcd5da316bf2d1615b8baed5397372a8ba917383ba480d7f30a699'
            '26347d880e10a24d3b4a17a8c6d9dc7c15cda21f50d6a07a8602ab67cd6f2d02'
            '81687c1769a6dcf0df72fed1bc23146f0a36525f8a0f2c279d31bc79b4809a0f')

package() {
    install -Dm755 ${pkgname}-${pkgver}.jar ${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar
    install -Dm755 ${pkgname} -t "${pkgdir}/usr/bin"
    install -Dm644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/komga.service"
    install -Dm644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/komga.conf"
    install -Dm644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/komga.conf"
    install -Dm644 "${srcdir}/${pkgname}.env" "${pkgdir}/etc/komga.conf"
    install -Dm644 "${pkgname}-${pkgver}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}"
}