mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
#
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: kote <koteccr at gmail dot com>
|
|
# Arch linux maintainer:
|
|
# Maintainer: josephgbr <rafael.f.f1@gmail.com>
|
|
|
|
pkgname=lib32-gtk3
|
|
pkgver=3.4.4
|
|
pkgrel=2
|
|
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' 'gtk3' 'lib32-keyutils'
|
|
'lib32-krb5' 'lib32-e2fsprogs')
|
|
makedepends=('gcc-multilib' )
|
|
options=('!libtool' '!docs')
|
|
install=gtk3.install
|
|
source=("http://ftp.gnome.org/pub/gnome/sources/gtk+/3.4/gtk+-${pkgver}.tar.xz")
|
|
sha256sums=('f154e460075034da4c0ce89c320025dcd459da2a1fdf32d92a09522eaca242c7')
|
|
|
|
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-introspection=no \
|
|
--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() {
|
|
cd "gtk+-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
mv "${pkgdir}"/usr/bin/gtk-query-immodules-3.0{,-32}
|
|
rm "${pkgdir}"/usr/bin/gtk3-{demo-application,widget-factory}
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin/gtk3-demo} "${pkgdir}/etc"
|
|
}
|