Skip to content

Instantly share code, notes, and snippets.

@alexandruianu
Created October 16, 2014 15:57
Show Gist options
  • Save alexandruianu/45e12caa8b8ca6acbeb2 to your computer and use it in GitHub Desktop.
Save alexandruianu/45e12caa8b8ca6acbeb2 to your computer and use it in GitHub Desktop.
lib32-gtk3 3.14.3 pkgbuild
# Contributor: josephgbr <[email protected]>
# Maintainer: GordonGR <[email protected]>
pkgname=lib32-gtk3
pkgver=3.14.3
pkgrel=1
pkgdesc="GObject-based multi-platform GUI toolkit (v3) (32-bit)"
arch=('x86_64')
license=('LGPL')
url="http://www.gtk.org/"
depends=('lib32-atk' 'lib32-gdk-pixbuf2' 'lib32-libxcomposite'
'lib32-libcups' 'lib32-libxcursor' 'lib32-libxdamage'
'lib32-libxi' 'lib32-libxinerama' 'lib32-libxrandr'
'lib32-pango' 'lib32-cairo' 'lib32-colord' 'lib32-glib2'
'lib32-at-spi2-atk' 'lib32-wayland' 'lib32-libxkbcommon'
'lib32-fontconfig' 'gtk3' 'lib32-rest' 'lib32-json-glib' )
makedepends=('gcc-multilib' 'gobject-introspection' 'python2')
options=('!libtool' '!docs')
install=gtk3.install
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz")
sha256sums=('5e8c62b932f4f0384c3c8cbf251f65978bdecde3211bb16e4c2bde5d8b3af72f')
build() {
export CC="gcc -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd gtk+-${pkgver}
CXX=/bin/false ./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gtk2-dependency \
--disable-schemas-compile \
--enable-x11-backend \
--enable-broadway-backend \
--enable-wayland-backend \
--libdir=/usr/lib32
#https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
make -C gtk+-${pkgver} DESTDIR="${pkgdir}" install
mv "${pkgdir}"/usr/bin/gtk-query-immodules-3.0{,-32}
rm "${pkgdir}"/usr/bin/{broadwayd,gtk-launch} \
"${pkgdir}"/usr/bin/gtk3-{demo,demo-application,widget-factory,icon-browser}
rm -rf "${pkgdir}"/usr/{include,share} "${pkgdir}/etc"
rm -rf "${pkgdir}"/usr/bin/gtk-encode-symbolic-svg
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment