mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:47:15 +08:00
60 lines
2.3 KiB
Bash
60 lines
2.3 KiB
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgbase=gtk2
|
|
pkgname=('gtk2' 'gtk-update-icon-cache')
|
|
pkgver=2.24.5
|
|
pkgrel=1
|
|
pkgdesc="The GTK+ Toolkit (v2)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gtk.org/"
|
|
makedepends=('atk>=1.32.0' 'pango>=1.28.0' 'libxcursor' 'libxinerama' 'libxrandr>=1.3.0' 'libxi>=1.3' 'libxcomposite' 'libxdamage' 'heimdal>=1.3.2' 'gnutls>=2.8.6' 'shared-mime-info' 'cairo>=1.10.0' 'libtiff>=3.9.2-2' 'libcups>=1.4.4' 'gdk-pixbuf2>=2.21.7' 'pkgconfig' 'gobject-introspection')
|
|
options=('!libtool' '!docs')
|
|
license=('LGPL')
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz
|
|
xid-collision-debug.patch
|
|
gdk_Make_background_changes_queue_a_repaint.patch)
|
|
sha256sums=('d6b30889efbb9fab9aa598092d08887826a7b2a3069b3bd5155dede28d9866f3'
|
|
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558'
|
|
'3573af25e8db2fb490b264f80cb9e617ee1a36e767e36e7bb1d830c0b715db93')
|
|
|
|
build() {
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/xid-collision-debug.patch"
|
|
patch -NRp1 -i "${srcdir}/gdk_Make_background_changes_queue_a_repaint.patch"
|
|
|
|
CXX=/bin/false ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--with-xinput=yes
|
|
make
|
|
}
|
|
package_gtk2() {
|
|
pkgdesc="The GTK+ Toolkit (v2)"
|
|
install=gtk2.install
|
|
depends=('atk' 'pango' 'libxcursor' 'libxinerama' 'libxrandr' 'libxi' 'libxcomposite' 'libxdamage' 'heimdal' 'gnutls' 'shared-mime-info' 'cairo' 'libcups' 'gtk-update-icon-cache')
|
|
backup=(etc/gtk-2.0/gtkrc)
|
|
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert
|
|
echo 'gtk-fallback-icon-theme = "gnome"' > "${pkgdir}/etc/gtk-2.0/gtkrc"
|
|
#split this out to use with gtk3 too
|
|
rm ${pkgdir}/usr/bin/gtk-update-icon-cache
|
|
}
|
|
package_gtk-update-icon-cache() {
|
|
pkgdesc="The GTK+ update icon cache tool"
|
|
depends=('gdk-pixbuf2')
|
|
|
|
cd "${srcdir}/gtk+-${pkgver}/gtk"
|
|
|
|
install -D -m755 gtk-update-icon-cache ${pkgdir}/usr/bin/gtk-update-icon-cache
|
|
}
|