mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 04:47:15 +08:00
37 lines
1.4 KiB
Bash
37 lines
1.4 KiB
Bash
# $Id: PKGBUILD 79610 2010-05-04 20:23:20Z ibiru $
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
|
|
pkgname=gtk2
|
|
pkgver=2.22.0
|
|
pkgrel=3
|
|
pkgdesc="The GTK+ Toolkit (v2)"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gtk.org/"
|
|
install=gtk2.install
|
|
depends=('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')
|
|
makedepends=('pkgconfig' 'gobject-introspection' 'gtk-doc')
|
|
replaces=('gtkprint-cups' 'gail')
|
|
conflicts=('gtkprint-cups' 'gail')
|
|
provides=('gail=1.22.3')
|
|
options=('!libtool' '!docs')
|
|
backup=(etc/gtk-2.0/gtkrc)
|
|
license=('LGPL')
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.22/gtk+-${pkgver}.tar.bz2
|
|
xid-collision-debug.patch)
|
|
sha256sums=('d9522c80d4b8a954f7474e32bd5a99ba3051996f1c4681426db5f79a1c1b4602'
|
|
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558')
|
|
|
|
build() {
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/xid-collision-debug.patch" || return 1
|
|
|
|
CXX=/bin/false ./configure --prefix=/usr --sysconfdir=/etc \
|
|
--localstatedir=/var --with-xinput=yes \
|
|
--without-libjasper \
|
|
--with-included-loaders=png || return 1
|
|
make || return 1
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
|
|
echo 'gtk-fallback-icon-theme = "gnome"' > "${pkgdir}/etc/gtk-2.0/gtkrc" || return 1
|
|
}
|