mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-24 09:52:13 +08:00
62 lines
1.8 KiB
Bash
62 lines
1.8 KiB
Bash
pkgbase=gtk3
|
|
pkgname=(gtk3 gtk-update-icon-cache)
|
|
pkgver=3.20.6
|
|
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>1.9.91' libxkbcommon
|
|
json-glib librsvg 'wayland-protocols>=1.0')
|
|
makedepends=(gobject-introspection libcanberra)
|
|
license=(LGPL)
|
|
source=(https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-$pkgver.tar.xz
|
|
settings.ini)
|
|
sha256sums=('3f8016563a96b1cfef4ac9e795647f6316deb2978ff939b19e4e4f8f936fa4b2'
|
|
'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"
|
|
}
|
|
|
|
# vim:set et sw=4:
|