mirror of
https://gitdl.cn/https://github.com/chakralinux/gtk.git
synced 2025-01-27 13:32:16 +08:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
pkgname=gtk2
|
|
pkgver=2.24.29
|
|
pkgrel=1
|
|
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
|
|
arch=(i686 x86_64)
|
|
url="http://www.gtk.org/"
|
|
depends=(atk pango libxcursor libxinerama libxrandr libxi libxcomposite libxdamage
|
|
shared-mime-info cairo libcups gtk-update-icon-cache librsvg)
|
|
makedepends=(gobject-introspection python2)
|
|
license=(LGPL)
|
|
install=gtk2.install
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-$pkgver.tar.xz
|
|
xid-collision-debug.patch)
|
|
sha256sums=('0741c59600d3d810a223866453dc2bbb18ce4723828681ba24aa6519c37631b8'
|
|
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558')
|
|
|
|
prepare() {
|
|
cd gtk+-$pkgver
|
|
patch -Np1 -i ../xid-collision-debug.patch
|
|
}
|
|
|
|
build() {
|
|
cd gtk+-$pkgver
|
|
|
|
CXX=/bin/false ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--with-xinput=yes
|
|
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd gtk+-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert
|
|
echo 'gtk-fallback-icon-theme = "oxygen"' > "$pkgdir/etc/gtk-2.0/gtkrc"
|
|
|
|
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
|
|
}
|
|
|
|
# vim:set noet sw=4:
|