add lib32-freetype2-ubuntu since there is none in aur
This commit is contained in:
		
							parent
							
								
									5c5e572ef9
								
							
						
					
					
						commit
						8e6c8d460a
					
				
					 4 changed files with 5444 additions and 0 deletions
				
			
		
							
								
								
									
										84
									
								
								lib32-freetype2-ubuntu/PKGBUILD
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										84
									
								
								lib32-freetype2-ubuntu/PKGBUILD
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,84 @@
 | 
			
		|||
# Contributor: Claire Farron <https://github.com/clfarron4/lib32-freetype2-ubuntu-archlinux>
 | 
			
		||||
# Contributor: Edoardo Maria Elidoro <edoardo.elidoro at gmail.com>
 | 
			
		||||
# Contributor: Scott Bernynski <scott.bernynski@gmx.com>
 | 
			
		||||
# Contributor: Andrea Fagiani <andfagiani {at} gmail {dot} com>
 | 
			
		||||
# Contributor: Paul Bredbury <brebs@sent.com>
 | 
			
		||||
# Contributor: Biru Ionut <biru.ionut at gmail.com>
 | 
			
		||||
 
 | 
			
		||||
# Installation order:  freetype2-ubuntu fontconfig-ubuntu libxft cairo-ubuntu
 | 
			
		||||
_pkgbasename=freetype2-ubuntu
 | 
			
		||||
pkgname=lib32-$_pkgbasename
 | 
			
		||||
pkgver=2.6.3
 | 
			
		||||
_ubver=2.6.3-3ubuntu1
 | 
			
		||||
_ubrel=utopic
 | 
			
		||||
pkgrel=1
 | 
			
		||||
pkgdesc="TrueType font rendering library, with Ubuntu's LCD rendering patches (32-bit)"
 | 
			
		||||
arch=('x86_64')
 | 
			
		||||
url="https://launchpad.net/ubuntu/+source/freetype"
 | 
			
		||||
license=('GPL')
 | 
			
		||||
depends=('lib32-bzip2' 'lib32-zlib' 'freetype2-ubuntu')
 | 
			
		||||
makedepends=('gcc-multilib')
 | 
			
		||||
conflicts=('lib32-freetype2' 'lib32-freetype2-cleartype' 'lib32-freetype2-lcd')
 | 
			
		||||
provides=("lib32-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)
 | 
			
		||||
 | 
			
		||||
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() {
 | 
			
		||||
  export CC="gcc -m32"
 | 
			
		||||
  export CXX="g++ -m32"
 | 
			
		||||
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
 | 
			
		||||
  cd ${srcdir}/freetype-${pkgver}
 | 
			
		||||
 | 
			
		||||
  # PNG support is useless if FT_CONFIG_OPTION_USE_PNG is disabled
 | 
			
		||||
  ./configure --prefix=/usr --libdir=/usr/lib32 --disable-static \
 | 
			
		||||
    --without-png
 | 
			
		||||
 | 
			
		||||
  make
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
check() {
 | 
			
		||||
  cd "${srcdir}/freetype-${pkgver}"
 | 
			
		||||
  make -k check
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
package() {
 | 
			
		||||
  cd ${srcdir}/freetype-${pkgver}
 | 
			
		||||
  make DESTDIR=${pkgdir} install
 | 
			
		||||
  rm -rf $pkgdir/usr/{include,share,bin}
 | 
			
		||||
}
 | 
			
		||||
md5sums=('0037b25a8c090bc8a1218e867b32beb1'
 | 
			
		||||
         '161e88978b77ee9be913b98f33fb9a23'
 | 
			
		||||
         '214119610444c9b02766ccee5e220680'
 | 
			
		||||
         '38765b5cc604179bf3afe33671d8ae37'
 | 
			
		||||
         '4d4a0caad7aa5e09bea0719cd80681bf')
 | 
			
		||||
							
								
								
									
										20
									
								
								lib32-freetype2-ubuntu/freetype-2.2.1-enable-valid.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								lib32-freetype2-ubuntu/freetype-2.2.1-enable-valid.patch
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
--- freetype-2.2.1/modules.cfg.orig	2006-07-07 21:01:09.000000000 -0400
 | 
			
		||||
+++ freetype-2.2.1/modules.cfg	2006-07-07 21:01:54.000000000 -0400
 | 
			
		||||
@@ -110,7 +110,7 @@
 | 
			
		||||
 AUX_MODULES += cache
 | 
			
		||||
 
 | 
			
		||||
 # TrueType GX/AAT table validation.  Needs ftgxval.c below.
 | 
			
		||||
-# AUX_MODULES += gxvalid
 | 
			
		||||
+AUX_MODULES += gxvalid
 | 
			
		||||
 
 | 
			
		||||
 # Support for streams compressed with gzip (files with suffix .gz).
 | 
			
		||||
 #
 | 
			
		||||
@@ -124,7 +124,7 @@
 | 
			
		||||
 
 | 
			
		||||
 # OpenType table validation.  Needs ftotval.c below.
 | 
			
		||||
 #
 | 
			
		||||
-# AUX_MODULES += otvalid
 | 
			
		||||
+AUX_MODULES += otvalid
 | 
			
		||||
 
 | 
			
		||||
 # Auxiliary PostScript driver component to share common code.
 | 
			
		||||
 #
 | 
			
		||||
							
								
								
									
										2668
									
								
								lib32-freetype2-ubuntu/freetype-2.3.0-enable-spr.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2668
									
								
								lib32-freetype2-ubuntu/freetype-2.3.0-enable-spr.patch
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										2672
									
								
								lib32-freetype2-ubuntu/freetype-2.4.11-enable-sph.patch
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2672
									
								
								lib32-freetype2-ubuntu/freetype-2.4.11-enable-sph.patch
									
										
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue