aboutsummaryrefslogtreecommitdiffstats
path: root/gtk3/PKGBUILD
blob: c888a667f9d4e3dbf90e5747afce37e66730c336 (plain) (blame)
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: Zee Eichel  <zee@dracos-linux.org>

pkgname=gtk3
pkgver=3.24.5
pkgrel=1
pkgdesc="GObject-based multi-platform GUI toolkit"
arch=('x86_64')
url="http://www.gtk.org/"
license=('LGPL')
depends=('at-spi2-atk' 'at-spi2-core' 'atk' 'fribidi' 'gdk-pixbuf' 'shared-mime-info' 'pango' 'libepoxy' 'libxkbcommon' 'iso-codes')
optdepends=('gobject-introspection' 'wayland' 'wayland-protocols')
source=("https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-${pkgver}.tar.xz"
	"gtk-query-immodules-3.0.hook"
	"gtk-update-icon-cache.hook"
	"gtk-update-icon-cache.script"
	"settings.ini")
sha256sums=('0be5fb0d302bc3de26ab58c32990d895831e2b7c7418d0ffea1206d6a3ddb02f'
            'de46e5514ff39a7a65e01e485e874775ab1c0ad20b8e94ada43f4a6af1370845'
            '496064a9dd6214bd58f689dd817dbdc4d7f17d42a8c9940a87018c3f829ce308'
            'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541'
            '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202'
)

build() {
	cd "${srcdir}/gtk+-${pkgver}"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-cloudprint \
		--disable-schemas-compile \
		--enable-broadway-backend \
		--enable-wayland-backend \
		--enable-x11-backend \
		--disable-man \
    --disable-doc
	make
}

package() {
	cd "${srcdir}/gtk+-${pkgver}"

	make install DESTDIR="${pkgdir}"

	install -v -Dm644 "${srcdir}/settings.ini" "${pkgdir}/usr/share/gtk-3.0/settings.ini"

	install -v -Dm644 "${srcdir}/gtk-query-immodules-3.0.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook"
	install -v -Dm644 "${srcdir}/gtk-update-icon-cache.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-update-icon-cache.hook"
	install -v -Dm755 "${srcdir}/gtk-update-icon-cache.script" "${pkgdir}/usr/share/libalpm/scripts/gtk-update-icon-cache"
}