mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
52 lines
1.5 KiB
Bash
52 lines
1.5 KiB
Bash
# maintainer (x86_64): AlmAck <almack[at]chakraos[dot]org>
|
|
|
|
_pkgbasename=gtk2
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.24.26
|
|
pkgrel=1
|
|
pkgdesc="The GTK+ Toolkit (v2) (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.gtk.org/"
|
|
install=gtk2.install
|
|
depends=(lib32-{'atk>=1.30.0','pango>=1.28.0','cairo>=1.10.0','krb5','gnutls>=2.8.6','gdk-pixbuf2>=2.22.0'}
|
|
lib32-lib{'cups>=1.4.4',xcursor,'xrandr>=1.3','xi>=1.3',xinerama,xcomposite,xdamage}
|
|
${_pkgbasename}=${pkgver})
|
|
makedepends=('pkgconfig' 'gcc-multilib')
|
|
options=('!docs')
|
|
license=('LGPL')
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-${pkgver}.tar.xz
|
|
xid-collision-debug.patch)
|
|
md5sums=('4610cc60ff96073b83dc7de254bdaf38'
|
|
'22355df723f6ca358e30e6b8f0baace5')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/gtk+-${pkgver}"
|
|
patch -Np1 -i "${srcdir}/xid-collision-debug.patch"
|
|
|
|
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
|
|
}
|