mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-02-03 07:37:14 +08:00
68 lines
2.4 KiB
Bash
68 lines
2.4 KiB
Bash
pkgbase=gtk3
|
|
pkgname=(gtk3 gtk-update-icon-cache)
|
|
pkgver=3.22.30
|
|
pkgrel=1
|
|
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
|
|
gtk-query-immodules-3.0.hook
|
|
gtk-update-icon-cache.hook
|
|
gtk-update-icon-cache.script)
|
|
sha256sums=('a1a4a5c12703d4e1ccda28333b87ff462741dc365131fbc94c218ae81d9a6567'
|
|
'0dd1d69a8e9ca9fca03b874049e0a7a439c4100cb4aac4dc37d12b595579c9d9'
|
|
'de46e5514ff39a7a65e01e485e874775ab1c0ad20b8e94ada43f4a6af1370845'
|
|
'496064a9dd6214bd58f689dd817dbdc4d7f17d42a8c9940a87018c3f829ce308'
|
|
'f1d3a0dbfd82f7339301abecdbe5f024337919b48bd0e09296bb0e79863b2541')
|
|
|
|
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"
|
|
install -Dm644 $srcdir/gtk-query-immodules-3.0.hook "$pkgdir/usr/share/libalpm/hooks/gtk-query-immodules-3.0.hook"
|
|
|
|
# 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)
|
|
|
|
cd gtk+-$pkgver/gtk
|
|
install -Dm755 gtk-update-icon-cache "$pkgdir/usr/bin/gtk-update-icon-cache"
|
|
install -Dm644 $srcdir/gtk-update-icon-cache.hook "$pkgdir/usr/share/libalpm/hooks/gtk-update-icon-cache.hook"
|
|
install -D $srcdir/gtk-update-icon-cache.script "$pkgdir/usr/share/libalpm/scripts/gtk-update-icon-cache"
|
|
}
|