gtk/gtk3/PKGBUILD
2018-02-07 20:36:46 +01:00

60 lines
1.8 KiB
Bash

pkgbase=gtk3
pkgname=(gtk3 gtk-update-icon-cache)
pkgver=3.22.26
pkgrel=2
pkgdesc="The GTK+ Toolkit (v3)"
arch=('x86_64')
url="http://www.gtk.org/"
depends=(atk cairo libcups libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2
libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon
json-glib librsvg wayland-protocols)
makedepends=(gobject-introspection libcanberra colord glib2-docs)
license=(LGPL)
source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
settings.ini)
sha256sums=('61eef0d320e541976e2dfe445729f12b5ade53050ee9de6184235cb60cd4b967'
'0dd1d69a8e9ca9fca03b874049e0a7a439c4100cb4aac4dc37d12b595579c9d9')
prepare() {
cd gtk+-$pkgver
}
build() {
cd "gtk+-$pkgver"
CXX=/bin/false ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-schemas-compile \
--enable-x11-backend \
--enable-broadway-backend \
--enable-wayland-backend
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package_gtk3() {
depends+=(gtk-update-icon-cache)
optdepends=('libcanberra: gtk3-widget-factory demo')
install=gtk3.install
cd "gtk+-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 ../settings.ini "$pkgdir/usr/share/gtk-3.0/settings.ini"
# split this out to use with gtk2 too
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
}
package_gtk-update-icon-cache() {
pkgdesc="GTK+ icon cache updater"
depends=(gdk-pixbuf2 hicolor-icon-theme)
install=gtk-update-icon-cache.install
cd gtk+-$pkgver/gtk
install -Dm755 gtk-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
}