summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 61a910f2b1df9997328f13e6cd91a12ebe2e126e (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
# Maintainer: Robert Manning <duckz@protonmail.ch>

pkgname=lightnovel-crawler-bin
pkgver=2.24.5
pkgrel=1
pkgdesc="An app to download novels from online sources and generate e-books."
arch=('any')
url="https://github.com/dipu-bd/lightnovel-crawler.git"
license=('Apache')
depends=(python)
makedepends=(git)
optdepends=('calibre: Output suport for docx, mobi, pdf, rtf, azw3, txt, fb2, lit, lrf, oeb, pdb, rb, snb, tcr')
provides=(lncrawl)
conflicts=(lncrawl)

source=("https://github.com/dipu-bd/lightnovel-crawler/releases/latest/download/lncrawl")

md5sums=('SKIP')
sha1sums=('SKIP')
sha256sums=('SKIP')

pkgver() {
  curl --silent "https://api.github.com/repos/dipu-bd/lightnovel-crawler/releases/latest" |\
  grep '"tag_name":' |\
  sed -E 's/.*"v([^"]+)".*/\1/'
}
package() {
  install -Dm755 lncrawl ${pkgdir}/usr/bin/lncrawl
}