gtk/gtk2/PKGBUILD

47 lines
1.3 KiB
Bash
Raw Normal View History

pkgname=gtk2
2016-09-10 12:02:38 +08:00
pkgver=2.24.31
2014-07-12 06:57:02 +08:00
pkgrel=1
2016-03-14 05:26:18 +08:00
# When updating, remember to also update lib32-gtk2
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
2016-03-14 05:26:18 +08:00
arch=(x86_64)
2013-05-04 07:55:24 +08:00
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)
2016-09-10 12:02:38 +08:00
sha256sums=('68c1922732c7efc08df4656a5366dcc3afdc8791513400dac276009b40954658'
2015-06-17 16:18:01 +08:00
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558')
2013-05-04 07:55:24 +08:00
prepare() {
cd gtk+-$pkgver
patch -Np1 -i ../xid-collision-debug.patch
}
2013-05-04 07:55:24 +08:00
build() {
cd gtk+-$pkgver
CXX=/bin/false ./configure --prefix=/usr \
--sysconfdir=/etc \
2013-05-04 07:55:24 +08:00
--localstatedir=/var \
--with-xinput=yes
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
2013-05-04 07:55:24 +08:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd gtk+-$pkgver
2013-05-04 07:55:24 +08:00
make DESTDIR="$pkgdir" install
sed -i "s#env python#env python2#" $pkgdir/usr/bin/gtk-builder-convert
2014-03-09 03:51:05 +08:00
echo 'gtk-fallback-icon-theme = "oxygen"' > "$pkgdir/etc/gtk-2.0/gtkrc"
2013-05-04 07:55:24 +08:00
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
2016-03-13 21:48:43 +08:00
rm -r "$pkgdir/usr/share/gtk-doc"
2013-05-04 07:55:24 +08:00
}