mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-16 00:20:27 +08:00
64 lines
1.9 KiB
Bash
64 lines
1.9 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=freetype2
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.8
|
|
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')
|
|
source=(https://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
|
|
0001-Enable-table-validation-modules.patch
|
|
0002-Enable-subpixel-rendering.patch
|
|
0003-Enable-infinality-subpixel-hinting.patch
|
|
0004-Enable-long-PCF-family-names.patch)
|
|
sha1sums=('42c6b1f733fe13a3eba135f5025b22cb68450f91'
|
|
'SKIP'
|
|
'c3e91e668936206d3c158bffde0f69788a086a5b'
|
|
'4ff958229a7f87e04a9894d5a6ed2df227071931'
|
|
'81586014ea44375ddc85dd9dbcabae6e91c34d62'
|
|
'334f229875039794adeb574e27d365bb445fb314')
|
|
validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
|
|
|
|
prepare() {
|
|
# Rename source dir to allow building the demos
|
|
mv freetype-${pkgver} freetype2
|
|
|
|
cd freetype2
|
|
patch -Np1 -i ../0001-Enable-table-validation-modules.patch
|
|
patch -Np1 -i ../0002-Enable-subpixel-rendering.patch
|
|
patch -Np1 -i ../0003-Enable-infinality-subpixel-hinting.patch
|
|
patch -Np1 -i ../0004-Enable-long-PCF-family-names.patch
|
|
}
|
|
|
|
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,bin}
|
|
}
|