summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56eff37d8ddbe19a86588fce9cb4b5779101b075 (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
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Jonathon Fernyhough <jonathon at_manjaro dot_org>
# Contributor: Gaming4JC
# Previous Maintainer: Ionut Biru <ibiru@archlinux.org>

pkgname=gtkhtml4-git
pkgver=latest
pkgrel=3
pkgdesc="A lightweight HTML renderer/editor widget for GTK3"
arch=(i686 x86_64)
license=('GPL')
provides=("${pkgname/-git/}")
conflicts=("${pkgname/-git/}")
depends=('cairo>=1.10.0'
         'enchant>=2.0'
         'gnome-common>=3.2.0'
         'gnome-icon-theme>=2.22'
         'gtk3>=3.2.0'
         'iso-codes>=0.49')
makedepends=('intltool')
url='https://github.com/GNOME/gtkhtml'
source=("${pkgname/-git/}::git+https://github.com/GNOME/${pkgname/4-git/}.git"
        'enchant-2.patch')
sha256sums=('SKIP'
            '2b78f071f7893e19618959443f3775bd435941a37ea9198b2fe72b596c205891')

pkgver() {
	cd "${pkgname/-git/}"
	# https://wiki.archlinux.org/index.php/VCS_package_guidelines#The_pkgver.28.29_function
	git describe --long 2>/dev/null | sed 's/GTKHTML_//; s/\([^-]*-g\)/r\1/; s/[-_]/./g'
}

prepare() {
	cd "${pkgname/-git/}"
	patch -Np0 < ../enchant-2.patch
}

build() {
	cd "${pkgname/-git/}"
	./autogen.sh --prefix=/usr --sysconfdir=/etc \
		--libexecdir=/usr/lib/gtkhtml4 \
		--localstatedir=/var --disable-static
	make
}

package() {
	cd "${pkgname/-git/}"
	make DESTDIR="$pkgdir" install
}