# Maintainer: schw0reismus pkgname=foliate pkgver=1.5.0 pkgrel=1 pkgdesc="A simple and modern GTK eBook reader" arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64') url="https://johnfactotum.github.io/foliate/" license=('GPL-3.0') depends=('gjs>=1.52.0' 'webkit2gtk') makedepends=('meson>=0.40' 'ninja' 'gettext') optdepends=('hyphen: Auto-hyphenation support' 'hyphen-en: Hyphenation rules for English; you may choose package for your language' 'dictd: Offline dictionary support' 'festival: Text-to-speech support; also voice package needed' 'espeak-hg: Text-to-speech support; also voice package needed') #source=(https://github.com/johnfactotum/${pkgname}/archive/${pkgver}.tar.gz) source=($pkgname::git+https://github.com/johnfactotum/$pkgname.git) provides=($pkgname) conflicts=($pkgname-git) sha256sums=('SKIP') pkgver() { cd $srcdir/$pkgname git describe --tags } build() { cd $srcdir/$pkgname git checkout -b $pkgver git pull origin $pkgver meson build --prefix=/usr ninja -C build } package(){ cd $srcdir/$pkgname DESTDIR=$pkgdir ninja -C build install }