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

pkgname=foliate-git
_name=foliate
pkgver=87.d678536
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')
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)
}