mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-14 06:49:04 +08:00
55 lines
1.5 KiB
Bash
55 lines
1.5 KiB
Bash
_pkgbasename=gtk2
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.24.31
|
|
pkgrel=1
|
|
pkgdesc="GObject-based multi-platform GUI toolkit (legacy) (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.gtk.org/"
|
|
install=gtk2.install
|
|
depends=(lib32-{atk,pango,cairo,gdk-pixbuf2}
|
|
lib32-lib{cups,xcursor,xrandr,xi,xinerama,xcomposite,xdamage}
|
|
${_pkgbasename}=${pkgver})
|
|
makedepends=('pkgconfig' 'lib32-gcc-libs')
|
|
options=('!docs')
|
|
license=('LGPL')
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz
|
|
xid-collision-debug.patch)
|
|
sha256sums=('68c1922732c7efc08df4656a5366dcc3afdc8791513400dac276009b40954658'
|
|
'd758bb93e59df15a4ea7732cf984d1c3c19dff67c94b957575efea132b8fe558')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
|
|
patch -Np1 -i "${srcdir}/xid-collision-debug.patch"
|
|
}
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
|
|
CXX=/bin/false ./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--libdir=/usr/lib32 \
|
|
--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 "${srcdir}/gtk+-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -rf "${pkgdir}"/etc
|
|
rm -rf "${pkgdir}"/usr/{include,share}
|
|
|
|
cd "${pkgdir}"/usr/bin
|
|
mv gtk-query-immodules-2.0 gtk-query-immodules-2.0-32
|
|
rm -f gtk-builder-convert gtk-demo gtk-update-icon-cache
|
|
}
|