APKBUILD 2.17 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gtk+3.0
3
pkgver=3.10.6
Natanael Copa's avatar
Natanael Copa committed
4
pkgrel=0
Ariadne Conill's avatar
Ariadne Conill committed
5 6 7
pkgdesc="The GTK+ Toolkit (v3)"
url="http://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
8
triggers="$pkgname.trigger=/usr/share/icons/*"
Ariadne Conill's avatar
Ariadne Conill committed
9 10
arch="all"
license="LGPL"
Natanael Copa's avatar
Natanael Copa committed
11
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
Ariadne Conill's avatar
Ariadne Conill committed
12 13 14 15 16 17 18 19 20
depends="shared-mime-info"

replaces="gtk+"
replaces_dev="gtk+-dev"
replaces_doc="gtk+-doc"

# depend on gtk+2.0 for update-icon-cache
depends="gtk+2.0"

21
depends_dev="
22
	at-spi2-atk-dev
Natanael Copa's avatar
Natanael Copa committed
23
	atk-dev
Ariadne Conill's avatar
Ariadne Conill committed
24
	cairo-dev
25
	fontconfig-dev
Ariadne Conill's avatar
Ariadne Conill committed
26 27
	gdk-pixbuf-dev
	glib-dev
28
	intltool
Ariadne Conill's avatar
Ariadne Conill committed
29 30 31 32
	libx11-dev
	libxcomposite-dev
	libxcursor-dev
	libxdamage-dev
Natanael Copa's avatar
Natanael Copa committed
33
	libxext-dev
Ariadne Conill's avatar
Ariadne Conill committed
34
	libxfixes-dev
Natanael Copa's avatar
Natanael Copa committed
35 36
	libxi-dev
	libxinerama-dev
Ariadne Conill's avatar
Ariadne Conill committed
37
	libxrandr-dev
Natanael Copa's avatar
Natanael Copa committed
38
	pango-dev
39
	"
40
makedepends="pkgconfig
41 42 43 44 45 46 47 48
	$depends_dev
	cups-dev
	expat-dev
	gettext-dev
	gnutls-dev
	gobject-introspection-dev
	libice-dev
	libiconv-dev
Ariadne Conill's avatar
Ariadne Conill committed
49 50
	tiff-dev
	zlib-dev"
Natanael Copa's avatar
Natanael Copa committed
51
source="http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz"
Ariadne Conill's avatar
Ariadne Conill committed
52 53 54


_builddir="$srcdir"/gtk+-$pkgver
55

Ariadne Conill's avatar
Ariadne Conill committed
56 57
build() {
	cd "$_builddir"
58 59 60 61
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
62 63
		--sysconfdir=/etc \
		--localstatedir=/var \
64 65 66 67 68 69 70
		--enable-xkb \
		--enable-xinerama \
		--enable-xrandr \
		--enable-xfixes \
		--enable-xcomposite \
		--enable-xdamage \
		--enable-x11-backend \
Natanael Copa's avatar
Natanael Copa committed
71
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
72 73 74 75 76
	# the configure script checks if isnan is a function. In uclibc
	# isnan is there, but as a macro
	# https://bugzilla.gnome.org/show_bug.cgi?id=676087
	echo "#define HAVE_ISNAN 1" >> config.h
	echo "#define HAVE_ISINF 1" >> config.h
77 78 79 80

	# https://bugzilla.gnome.org/show_bug.cgi?id=655517
	sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1

Ariadne Conill's avatar
Ariadne Conill committed
81 82 83 84 85 86 87 88 89
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

	# use gtk+2.0's for now
	rm "$pkgdir"/usr/bin/gtk-update-icon-cache
Natanael Copa's avatar
Natanael Copa committed
90
	find "$pkgdir" -name *.la -delete
Ariadne Conill's avatar
Ariadne Conill committed
91 92
}

93 94 95
md5sums="a260136f4cd6d3e5745e220080653b71  gtk+-3.10.6.tar.xz"
sha256sums="3c24c57fc5cb7a5ea39d3a3ff7b12be63d7f21a52fd6f20f7b983e19b7b0268a  gtk+-3.10.6.tar.xz"
sha512sums="2619d2e08dbdde41528ad132f120c91b7536d01a6932a9dc9ac5c5b2ba7e68bcebbd91374189160519da20794957b5dcd05502f92c2acecb01bfc99444f0617b  gtk+-3.10.6.tar.xz"