desktop/freetype2-ubuntu/PKGBUILD
2012-04-24 19:35:02 +00:00

59 lines
1.6 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=freetype2-ubuntu
_pkgname=freetype
_pkgname2=freetype2
pkgver=2.4.9
_pkgver=2.4.8-1
pkgrel=1
pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches."
arch=('i686' 'x86_64')
url="https://launchpad.net/ubuntu/oneiric/+source/freetype"
license=('GPL')
depends=('zlib')
conflicts=($_pkgname2)
provides=("$_pkgname2=$pkgver")
categories=('system')
options=('!libtool')
source=(http://downloads.sourceforge.net/sourceforge/$_pkgname/$_pkgname-$pkgver.tar.bz2
https://launchpad.net/ubuntu/precise/+source/$_pkgname/$_pkgver/+files/${_pkgname}_$_pkgver.diff.gz
apple-offset.patch
enable-valid.patch)
md5sums=('77a893dae81fd5b896632715ca041179'
'97a1f13bcf4c5e5a9fc32795fcc72c44'
'1c964f90ae90aa391af574ceb0814cda'
'214119610444c9b02766ccee5e220680')
build() {
cd $srcdir/$_pkgname-$pkgver
# Patch from Ubuntu.
patch -Np1 -i $srcdir/${_pkgname}_$_pkgver.diff
# Patches adjustments.
sed -i -e "s#\ssrc# freetype-$pkgver/src#g" debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
sed -i -e "s/-p[0-9]\|.*otvalid\.patch//g" debian/patches-freetype/series
# Patches.
for _f in $(cat debian/patches-freetype/series) ; do
patch -Np1 -i debian/patches-freetype/$_f
done
# Patches from Arch Linux.
patch -Np1 -i $srcdir/enable-valid.patch
# Configure and build.
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$_pkgname-$pkgver
make DESTDIR=$pkgdir install
}