gtk/gtk3/PKGBUILD

62 lines
1.7 KiB
Bash
Raw Normal View History

2015-12-18 00:24:46 +08:00
pkgbase=gtk3
pkgname=(gtk3 gtk-update-icon-cache)
2015-12-16 09:09:03 +08:00
pkgver=3.18.6
2015-03-09 04:00:48 +08:00
pkgrel=1
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
libxcomposite libxdamage pango shared-mime-info colord at-spi2-atk wayland libxkbcommon
json-glib librsvg)
makedepends=(gobject-introspection libcanberra)
license=(LGPL)
source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
settings.ini)
2015-12-16 09:09:03 +08:00
sha256sums=('78cabf0fd5a662f8723f62d5ac633072c76c557c1d700454c9c3deaa37e441ef'
'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
}
2015-12-18 00:24:46 +08:00
# vim:set et sw=4: