aboutsummaryrefslogtreecommitdiffstats
path: root/gtk2/PKGBUILD
blob: 6255dc52bb66a5cd59abbc7b099a20ab5de5bb58 (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
#Maintainer: Zee Eichel  <zee@dracos-linux.org>
pkgname=gtk2
pkgver=2.24.32
pkgrel=1
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
arch=('x86_64')
url="http://www.gtk.org/"
license=('LGPL')
depends=('atk' 'gdk-pixbuf' 'pango')
optdepends=('gobject-introspection' 'cups')
source=("https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-${pkgver}.tar.xz"
	"gtk-query-immodules-2.0.hook"
	"gtkrc")
sha256sums=('b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e'
            '3d53df9166f7e37c153eb4a3961a5785455e7328ae5a9320a62f48c76c7aea70'
            'bc968e3e4f57e818430130338e5f85a5025e21d7e31a3293b8f5a0e58362b805')

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

	sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in
}

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

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--disable-man

	make
}

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

	make install DESTDIR="${pkgdir}"

	rm -rf "${pkgdir}/usr/bin/gtk-update-icon-cache" "${pkgdir}/usr/share/man/man1/gtk-update-icon-cache.1"

	install -v -Dm644 "${srcdir}/gtkrc" "${pkgdir}/usr/share/gtk-2.0/gtkrc"
	install -v -Dm644 "${srcdir}/gtk-query-immodules-2.0.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook"
}