summaryrefslogblamecommitdiff
path: root/user/gtk+3.0/APKBUILD
blob: 765718db2d89c05ca32967d35a07d8507e10f720 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

               
             








                                                                             





                                                                       


                       

                                                                                
































                                                                  

                                                                                                                                                                
# Maintainer: 
pkgname=gtk+3.0
pkgver=3.24.2
pkgrel=0
pkgdesc="The GTK+ Toolkit (v3)"
url="https://www.gtk.org/"
install="$pkgname.post-install $pkgname.post-upgrade $pkgname.post-deinstall"
arch="all"
options="!check"  # Test suite is known to fail upstream
license="LGPL-2.1+"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends="shared-mime-info gtk-update-icon-cache"
makedepends="at-spi2-atk-dev atk-dev cairo-dev cups-dev expat-dev
	fontconfig-dev gdk-pixbuf-dev glib-dev gnutls-dev
	gobject-introspection-dev libepoxy-dev libice-dev libx11-dev
	libxcomposite-dev libxcursor-dev libxdamage-dev libxext-dev
	libxfixes-dev libxi-dev libxinerama-dev libxrandr-dev pango-dev
	tiff-dev zlib-dev"
replaces="gtk+"
replaces_dev="gtk+-dev"
replaces_doc="gtk+-doc"
source="https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz
	releng-what-releng.patch"
builddir="$srcdir"/gtk+-$pkgver

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-xkb \
		--enable-xinerama \
		--enable-xrandr \
		--enable-xfixes \
		--enable-xcomposite \
		--enable-xdamage \
		--enable-x11-backend

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

	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install

	# use gtk-update-icon-cache from gtk+2.0 for now
	rm -f "$pkgdir"/usr/bin/gtk-update-icon-cache
	rm -f "$pkgdir"/usr/share/man/man1/gtk-update-icon-cache.1
}

sha512sums="da225045cc577fccb4dc5fd2595da812d802b597950e378a678a0be0250815d982cb0b53519a2cdc02755f123164dbdad79a9178c03ecf29c85a45e757c47840  gtk+-3.24.2.tar.xz
33431daf4ceb2983768a66d7368bc6ce9769eff481c35420e60e4a3650edc24843f10c13328bc95d77d9170ee478e0d5d672f5ae5087c3ab73b47391cf8a8dbd  releng-what-releng.patch"