summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53ba5dcc34129a319c9527bce236af380acf6e90 (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
# Maintainer: schw0reismus <schw0reismus@protonmail.com>

pkgname=foliate-git
_name=foliate
pkgver=129.470e1e3
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' 'webkit2gtk' 'libsoup')
makedepends=('meson' 'ninja')
optdepends=('hyphen: Auto-hyphenation support'
						'hyphen-en: Hyphenation rules for English; you may choose package for your language')
source=("$_name::git+https://github.com/johnfactotum/$_name.git#branch=master")
provides=("$_name")
replaces=("$_name")
conflicts=("$_name")
md5sums=('SKIP')

build() {
	cd "$srcdir/$_name"
	meson build --prefix=/usr
	ninja -C build
}

package(){
	cd "$srcdir/$_name"
	DESTDIR="$pkgdir" ninja -C build install
}

pkgver() {
	cd "$srcdir/$_name"
	echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}