[arch-commits] Commit in freetype2/trunk (PKGBUILD)
Andreas Radke
andyrtr at archlinux.org
Sun Jul 10 19:38:39 UTC 2016
Date: Sunday, July 10, 2016 @ 19:38:38
Author: andyrtr
Revision: 271257
upgpkg: freetype2 2.6.4-3
ship docs and demos/tools
Modified:
freetype2/trunk/PKGBUILD
----------+
PKGBUILD | 30 +++++++++++++++++++++++++-----
1 file changed, 25 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-07-10 19:21:35 UTC (rev 271256)
+++ PKGBUILD 2016-07-10 19:38:38 UTC (rev 271257)
@@ -3,7 +3,7 @@
pkgname=freetype2
pkgver=2.6.4
-pkgrel=2
+pkgrel=3
pkgdesc="TrueType font rendering library"
arch=(i686 x86_64)
license=('GPL')
@@ -14,11 +14,17 @@
provides=('libfreetype.so')
install=freetype2.install
source=(http://download.savannah.gnu.org/releases/freetype/freetype-${pkgver}.tar.bz2{,.sig}
+ http://download.savannah.gnu.org/releases/freetype/freetype-doc-${pkgver}.tar.bz2{,.sig}
+ http://download.savannah.gnu.org/releases/freetype/ft2demos-${pkgver}.tar.bz2{,.sig}
0001-Enable-table-validation-modules.patch
0002-Enable-subpixel-rendering.patch
0003-Make-subpixel-hinting-mode-configurable.patch)
sha1sums=('5eaa8c949b4841eeabba44d2c582ff6859e5c4b9'
'SKIP'
+ '18d37b8f50c6f114aeaec454cec949558b1be1f1'
+ 'SKIP'
+ '33060a22ec51e1d2aded833a940eb35badc4daff'
+ 'SKIP'
'045b1b6a56151ab46a8300e6fd09f24294258e97'
'afd6f9504516fa02e57890dde820f488e0df36bb'
'2a1d6e734001e196c7a7790c78165d9b9fe49f7f')
@@ -25,7 +31,9 @@
validpgpkeys=('58E0C111E39F5408C5D3EC76C1A60EACE707FDA5')
prepare() {
- cd "${srcdir}/freetype-${pkgver}"
+ # rename source dir to allow building the demos
+ mv freetype-${pkgver} freetype2
+ cd freetype2
patch -Np1 -i "${srcdir}/0001-Enable-table-validation-modules.patch"
patch -Np1 -i "${srcdir}/0002-Enable-subpixel-rendering.patch"
@@ -35,17 +43,29 @@
}
build() {
- cd "${srcdir}/freetype-${pkgver}"
+ cd freetype2
./configure --prefix=/usr --disable-static
make
+
+ # Build demos
+ pushd ../ft2demos-${pkgver}
+ make
+ popd
}
check() {
- cd "${srcdir}/freetype-${pkgver}"
+ cd freetype2
make -k check
}
package() {
- cd "${srcdir}/freetype-${pkgver}"
+ cd freetype2
make DESTDIR="${pkgdir}" install
+
+ # package demos
+ install -m755 ../ft2demos-${pkgver}/bin/.libs/{f,t}t* "$pkgdir/usr/bin/"
+
+ # package docs
+ install -dm755 ${pkgdir}/usr/share/doc/${pkgname}
+ cp -a docs/* ${pkgdir}/usr/share/doc/${pkgname}
}
More information about the arch-commits
mailing list