2011-01-16 18:49:00 +08:00
|
|
|
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
|
|
|
|
|
|
_pkgbasename=pango
|
2015-12-18 00:07:35 +08:00
|
|
|
pkgname=lib32-$_pkgbasename
|
|
|
|
pkgver=1.38.1
|
2015-12-18 00:12:44 +08:00
|
|
|
pkgrel=2
|
2011-01-16 18:49:00 +08:00
|
|
|
pkgdesc="A library for layout and rendering of text (32-bit)"
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('LGPL')
|
2015-12-18 00:07:35 +08:00
|
|
|
depends=('lib32-libthai' 'lib32-libgl' 'lib32-cairo' 'lib32-libxft'
|
|
|
|
"$_pkgbasename=$pkgver")
|
|
|
|
makedepends=('gcc-multilib' 'lib32-mesa-libgl')
|
2014-02-14 04:35:39 +08:00
|
|
|
options=('!emptydirs')
|
2011-01-16 18:49:00 +08:00
|
|
|
install=pango.install
|
2015-12-18 00:07:35 +08:00
|
|
|
source=(http://ftp.gnome.org/pub/gnome/sources/${_pkgbasename}/${pkgver:0:4}/${_pkgbasename}-${pkgver}.tar.xz)
|
2011-01-16 18:49:00 +08:00
|
|
|
url="http://www.pango.org/"
|
2015-12-18 00:07:35 +08:00
|
|
|
sha256sums=('1320569f6c6d75d6b66172b2d28e59c56ee864ee9df202b76799c4506a214eb7')
|
2013-08-16 04:03:29 +08:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgbasename}-${pkgver}"
|
|
|
|
|
|
|
|
sed -i 's#"pango.modules"#"pango.modules-32"#' pango/modules.c
|
|
|
|
}
|
2011-01-16 18:49:00 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
export CC="gcc -m32"
|
|
|
|
export CXX="g++ -m32"
|
|
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
|
2013-10-23 15:56:10 +08:00
|
|
|
cd ${_pkgbasename}-${pkgver}
|
2013-02-28 04:11:07 +08:00
|
|
|
|
2013-08-16 04:03:29 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--libdir=/usr/lib32 \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-included-modules=basic-fc \
|
|
|
|
--with-dynamic-modules=arabic-fc,arabic-lang,basic-fc,basic-win32,basic-x,basic-atsui,hangul-fc,hebrew-fc,indic-fc,indic-lang,khmer-fc,syriac-fc,tibetan-fc \
|
|
|
|
--disable-introspection
|
2011-01-16 18:49:00 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2013-10-23 15:56:10 +08:00
|
|
|
cd ${_pkgbasename}-${pkgver}
|
2011-01-16 18:49:00 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2013-10-23 15:56:10 +08:00
|
|
|
rm -rf "${pkgdir}"/etc
|
|
|
|
rm -rf "${pkgdir}"/usr/{bin/pango-view,share,include}
|
2011-01-16 18:49:00 +08:00
|
|
|
}
|
2013-08-16 04:03:29 +08:00
|
|
|
|