diff options
author | Vincent Grande | 2018-11-16 17:17:32 -0500 |
---|---|---|
committer | Vincent Grande | 2018-11-16 17:17:32 -0500 |
commit | 0dc27d7d8f3c1d69fb9970ba9e420cec06144a1e (patch) | |
tree | fbc379605fbc5c46ea093776d8d5057eda145a47 /PKGBUILD | |
download | aur-0dc27d7d8f3c1d69fb9970ba9e420cec06144a1e.tar.gz |
match official repo
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-x | PKGBUILD | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..feca398c55a8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,74 @@ +# Maintainer: Vincent Grande <shoober420@gmail.com> +# Contributor: Ionut Biru <ibiru@archlinux.org> +# Contributor: Jan de Groot <jgc@archlinux.org> + +_pkgbasename=freetype2 +pkgname=lib32-$_pkgbasename-git +pkgver=2.9.1+p305+g8d517e679 +pkgrel=1 +pkgdesc="TrueType font rendering library (32-bit)" +arch=(x86_64) +license=('GPL') +url="https://www.freetype.org/" +# adding harfbuzz for improved OpenType features auto-hinting +# introduces a cycle dep to harfbuzz depending on freetype wanted by upstream +depends=('lib32-zlib' 'lib32-bzip2' 'lib32-libpng' 'lib32-harfbuzz' $_pkgbasename) +makedepends=('gcc-multilib') +provides=('libfreetype.so' 'lib32-freetype2') +conflicts=('lib32-freetype2') +source=(git://git.sv.gnu.org/freetype/freetype2.git + 0001-Enable-table-validation-modules.patch + 0002-Enable-infinality-subpixel-hinting.patch + 0003-Enable-long-PCF-family-names.patch + 0004-Enable-old-engines-but-keep-adobe-as-default.patch) +sha1sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') +validpgpkeys=('SKIP') + +pkgver() { + local _tag _count + + cd "${srcdir}/freetype2" + _tag=$(git describe --abbrev=0 ) + _count=$(git rev-list --count ${_tag}..HEAD) + _tag=${_tag#VER-} + echo ${_tag//-/.}+p$_count+g$(git rev-parse --short HEAD) +} + +prepare() { + + cd freetype2 + patch -Np1 -i ../0001-Enable-table-validation-modules.patch + patch -Np1 -i ../0002-Enable-infinality-subpixel-hinting.patch + patch -Np1 -i ../0003-Enable-long-PCF-family-names.patch + patch -Np1 -i ../0004-Enable-old-engines-but-keep-adobe-as-default.patch + + ./autogen.sh +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" + + cd freetype2 + ./configure --prefix=/usr --disable-static --libdir=/usr/lib32 + make +} + +#check() { +# cd freetype2 +# make -k check +#} + +package() { + cd freetype2 + make DESTDIR="${pkgdir}" install + + rm -r "${pkgdir}"/usr/{include,share} +} + +# vim:set ts=2 sw=2 et: |