2015-12-18 00:24:46 +08:00
|
|
|
pkgbase=gtk3
|
|
|
|
pkgname=(gtk3 gtk-update-icon-cache)
|
2018-01-04 08:34:10 +08:00
|
|
|
pkgver=3.22.26
|
2018-02-08 03:36:46 +08:00
|
|
|
pkgrel=2
|
2013-05-06 05:39:20 +08:00
|
|
|
pkgdesc="The GTK+ Toolkit (v3)"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="http://www.gtk.org/"
|
2015-12-18 00:24:46 +08:00
|
|
|
depends=(atk cairo libcups libxcursor libxinerama libxrandr libxi libepoxy gdk-pixbuf2
|
2017-10-29 09:20:56 +08:00
|
|
|
libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon
|
|
|
|
json-glib librsvg wayland-protocols)
|
|
|
|
makedepends=(gobject-introspection libcanberra colord glib2-docs)
|
2015-12-18 00:24:46 +08:00
|
|
|
license=(LGPL)
|
|
|
|
source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
|
|
|
|
settings.ini)
|
2018-01-04 08:34:10 +08:00
|
|
|
sha256sums=('61eef0d320e541976e2dfe445729f12b5ade53050ee9de6184235cb60cd4b967'
|
2015-12-16 09:09:03 +08:00
|
|
|
'0dd1d69a8e9ca9fca03b874049e0a7a439c4100cb4aac4dc37d12b595579c9d9')
|
2013-05-06 05:39:20 +08:00
|
|
|
|
2015-12-18 00:24:46 +08:00
|
|
|
prepare() {
|
|
|
|
cd gtk+-$pkgver
|
|
|
|
}
|
2015-02-16 11:58:30 +08:00
|
|
|
|
2013-05-06 05:39:20 +08:00
|
|
|
build() {
|
2015-12-18 00:24:46 +08:00
|
|
|
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
|
2013-05-06 05:39:20 +08:00
|
|
|
}
|
|
|
|
|
2015-12-18 00:24:46 +08:00
|
|
|
package_gtk3() {
|
|
|
|
depends+=(gtk-update-icon-cache)
|
|
|
|
optdepends=('libcanberra: gtk3-widget-factory demo')
|
|
|
|
install=gtk3.install
|
2013-05-06 05:39:20 +08:00
|
|
|
|
2015-12-18 00:24:46 +08:00
|
|
|
cd "gtk+-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm644 ../settings.ini "$pkgdir/usr/share/gtk-3.0/settings.ini"
|
2013-05-06 05:39:20 +08:00
|
|
|
|
2015-12-18 00:24:46 +08:00
|
|
|
# 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
|
2015-02-16 22:35:34 +08:00
|
|
|
|
2015-12-18 00:24:46 +08:00
|
|
|
cd gtk+-$pkgver/gtk
|
|
|
|
install -Dm755 gtk-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
|
2013-05-06 05:39:20 +08:00
|
|
|
}
|