1 # Contributor: Paul Bredbury <brebs@sent.com>
2 # Contributor: Biru Ionut <biru.ionut at gmail.com>
3 # Maintainer: Andrea Fagiani <andfagiani {at} gmail {dot} com>
5 # Installation order: freetype2-ubuntu fontconfig-ubuntu libxft-ubuntu cairo-ubuntu
6 _pkgbasename=libxft-ubuntu
7 pkgname=lib32-$_pkgbasename
11 pkgdesc="FreeType-based font drawing library for X, with Ubuntu's LCD rendering patches (32-bit)"
13 url="https://launchpad.net/ubuntu/precise/+source/xft"
15 depends=('lib32-fontconfig-ubuntu' 'lib32-freetype2-ubuntu' 'lib32-libxrender')
16 makedepends=('gcc-multilib')
17 provides=("lib32-libxft=$pkgver")
18 conflicts=('lib32-libxft')
19 makedepends=('pkgconfig')
21 source=(http://xorg.freedesktop.org/releases/individual/lib/libXft-$pkgver.tar.bz2
22 http://archive.ubuntu.com/ubuntu/pool/main/x/xft/xft_$_ubver.diff.gz)
24 md5sums=('cce3c327258116493b753f157e0360c7'
25 '354131b2da1a90d23a64336957b29b39')
30 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
32 cd $srcdir/libXft-$pkgver
34 patch -Np1 -i ../xft_$_ubver.diff
36 for _f in $(cat debian/patches/series) ; do
37 [[ $_f = "001_no_export_freetype.diff" ]] && continue
38 patch -Np1 -i debian/patches/$_f
41 ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static
46 cd $srcdir/libXft-$pkgver
47 make DESTDIR=$pkgdir install
49 rm -rf $pkgdir/usr/{bin,include,share}
50 mkdir -p $pkgdir/usr/share/licenses
51 ln -s $_pkgbasename $pkgdir/usr/share/licenses/$pkgname