Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Maintainer : Claire Farron <https://github.com/clfarron4/freetype2-ubuntu-archlinux>
- # Contributor: Diego Principe <cdprincipeat gmaildot com>
- # Contributor: Matjaz Mozetic <rationalperseus@gmail.com>
- # Contributor: Tevin Zhang <mail2tevin {at} gmail {dot} com>
- # Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
- # Contributor: Paul Bredbury <brebs@sent.com>
- # Contributor: Biru Ionut <biru.ionut at gmail.com>
- # Contributor: lelele <sodomyxxx@gmail.com>
- # Installation order: freetype2-ubuntu fontconfig-ubuntu libxft cairo-ubuntu
- pkgname=freetype2-ubuntu
- pkgver=2.5.2
- _ubver=2.5.2-1ubuntu3
- _ubrel=utopic
- pkgrel=3
- pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches"
- arch=('i686' 'x86_64')
- url="https://launchpad.net/ubuntu/+source/freetype"
- license=('GPL')
- depends=('zlib' 'bzip2' 'sh')
- conflicts=('freetype2' 'freetype2-cleartype' 'freetype2-lcd')
- provides=("freetype2=$pkgver")
- options=('!libtool')
- source=(http://downloads.sourceforge.net/sourceforge/freetype/freetype-${pkgver}.tar.bz2
- https://launchpad.net/ubuntu/+archive/primary/+files/freetype_${_ubver}.diff.gz
- freetype-2.2.1-enable-valid.patch
- freetype-2.3.0-enable-spr.patch
- freetype-2.4.11-enable-sph.patch)
- md5sums=('10e8f4d6a019b124088d18bc26123a25'
- '3d5dbb70ebf48703ff396338d9e52d80'
- '214119610444c9b02766ccee5e220680'
- '38765b5cc604179bf3afe33671d8ae37'
- '4d4a0caad7aa5e09bea0719cd80681bf')
- prepare() {
- cd "${srcdir}/freetype-${pkgver}"
- # Patch from ubuntu
- patch -Np1 -i $srcdir/freetype_$_ubver.diff
- sed -e "s/-p[0-9]\|.*otvalid\.patch//g" \
- -i debian/patches-freetype/series
- sed -e 's/ src/ a\/src/g' \
- -e '/^Index.*ftbase.c/,/EOF/d' \
- -i debian/patches-freetype/freetype-2.1.7-backwards.compat.patch
- for _f in $(cat debian/patches-freetype/series) ; do
- patch -Np1 -i debian/patches-freetype/$_f
- done
- # Patches from arch trunkcat debian/patches-freetype/series
- patch -Np1 -i "${srcdir}/freetype-2.2.1-enable-valid.patch"
- # patch -Np1 -i "${srcdir}/freetype-2.3.0-enable-spr.patch"
- # Disabled for now due to resistance
- # Kept here for easier rebuilds via ABS
- # https://bugs.archlinux.org/task/35274
- #patch -Np1 -i "${srcdir}/freetype-2.4.11-enable-sph.patch"
- }
- build() {
- cd ${srcdir}/freetype-${pkgver}
- # PNG support is useless if FT_CONFIG_OPTION_USE_PNG is disabled
- ./configure --prefix=/usr --disable-static \
- --without-png
- make
- }
- check() {
- cd "${srcdir}/freetype-${pkgver}"
- make -k check
- }
- package() {
- cd ${srcdir}/freetype-${pkgver}
- make DESTDIR=${pkgdir} install
- }
Add Comment
Please, Sign In to add comment