blob: f0717cd918d891a7e7d2738058b4c94e49598221 (
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
|
# Maintainer: schw0reismus <schw0reismus@protonmail.com>
pkgname=foliate-git
pkgver=1.5.2.r6.g284f169
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' 'gettext')
makedepends=('meson>=0.40' 'ninja' 'git')
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'
'espeak-ng: Text-to-speech support'
)
source=("${pkgname%-git}::git+https://github.com/johnfactotum/${pkgname%-git}.git#branch=master")
provides=("${pkgname%-git}")
replaces=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
md5sums=('SKIP')
pkgver() {
cd $srcdir/${pkgname%-git}
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $srcdir/${pkgname%-git}
meson build --prefix=/usr
ninja -C build
}
package(){
cd $srcdir/${pkgname%-git}
DESTDIR=$pkgdir ninja -C build install
}
|