summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4304ad18ab840ca904e08b04cfa3b32a985c35c4 (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
# Maintainer: Mattia Borda <mattiagiovanni.borda@icloud.com>
# Contributor: Kevin Majewski <kevin.majewski02@gmail.com>

pkgname=komikku-git
pkgver=1.7.0.r2.gc5ee2a72
pkgrel=1
pkgdesc='Online/offline Manga reader for GNOME with PinePhone and Librem 5 Support'
arch=(any)
url=https://gitlab.com/valos/${pkgname%-git}
license=(GPL3)
depends=('libadwaita' 'python-beautifulsoup4' 'python-brotli' 'python-cairo' 'python-cffi' 'python-cloudscraper' 'python-dateparser' 'python-emoji' 'python-gobject' 'python-keyring' 'python-lxml' 'python-magic' 'python-natsort' 'python-pillow' 'python-pure-protobuf' 'python-unidecode' 'python-wheel' 'python-rarfile' 'webkit2gtk' 'webkit2gtk-5.0' 'python-piexif')
makedepends=('git' 'gobject-introspection' 'meson')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=(git+$url)
b2sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson ${pkgname%-git} build
  ninja -C build
}

check() {
  meson test -C build --print-errorlog
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}