lib32/lib32-libxft/PKGBUILD
Chaoting Liu 6a5fe00f64 merge
2015-02-25 18:42:21 +00:00

69 lines
2.0 KiB
Bash

# Lib32 Packages for Chakra, part of chakra-project.org
#
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
_pkgbasename=libxft
pkgname=lib32-$_pkgbasename
<<<<<<< HEAD
pkgver=2.2.0
pkgrel=2
=======
pkgver=2.3.2
_ubuntu_ver=2.3.1
pkgrel=1
_ubuntu_diff_version=${_ubuntu_ver}-2
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
pkgdesc="FreeType-based font drawing library for X (32-bit)"
arch=('x86_64')
license=('custom')
url="http://xorg.freedesktop.org/"
depends=('lib32-fontconfig' 'lib32-libxrender' $_pkgbasename=$pkgver)
makedepends=('gcc-multilib')
options=('!libtool')
<<<<<<< HEAD
source=(${url}/releases/individual/lib/libXft-${pkgver}.tar.bz2)
sha1sums=('ed29784259f4e26df78141035560ae8a7c62e83f')
=======
provides=("${pkgname}-ubuntu")
conflicts=("${pkgname}-ubuntu")
replaces=("${pkgname}-ubuntu")
source=(${url}/releases/individual/lib/libXft-${pkgver}.tar.bz2
#"http://archive.ubuntu.com/ubuntu/pool/main/x/xft/xft_${_ubuntu_diff_version}.diff.gz"
# from original, removed xftglyphs.c patch
xft_2.3.2-1.diff)
sha1sums=('e025d790a7b6c4d283a78d8df06615cb10278e2d'
'75bda08fd01faae18a85140fbc577beb0a89e823')
>>>>>>> 600514ebcaaf80d91da28d7572f7905dbeed7b0a
build() {
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
cd ${srcdir}/libXft-${pkgver}
# apply our custom patche
patch -Np1 -i ../xft_2.3.2-1.diff
# apply ubuntu patches
#patch -Np1 -i ../xft_${_ubuntu_diff_version}.diff
for _f in $(cat "$srcdir/libXft-${pkgver}/debian/patches/series" | grep -v '#') ; do
patch -Np1 -i "$srcdir/libXft-${pkgver}/debian/patches/$_f"
done
./configure --prefix=/usr \
--libdir=/usr/lib32 \
--disable-static
make
}
package() {
cd "${srcdir}/libXft-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -rf "${pkgdir}"/usr/{bin,include,share}
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}