aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-06-10 11:08:31 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-06-10 11:08:31 +0200
commit144b3f2de2baaf148381ad32dc8170969ab154c8 (patch)
treeaa829233ce6f7cb434573f636cf6401c11728cae /main
parent8ce0d34f656a9df05d3ce535ee4dbfa03ae6ca19 (diff)
downloadaports-144b3f2de2baaf148381ad32dc8170969ab154c8.tar.bz2
aports-144b3f2de2baaf148381ad32dc8170969ab154c8.tar.xz
main/freetype: upgrade to 2.6 and add infinality patches
Diffstat (limited to 'main')
-rw-r--r--main/freetype/APKBUILD42
1 files changed, 24 insertions, 18 deletions
diff --git a/main/freetype/APKBUILD b/main/freetype/APKBUILD
index 4264e067df..eb11d596be 100644
--- a/main/freetype/APKBUILD
+++ b/main/freetype/APKBUILD
@@ -1,21 +1,21 @@
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=freetype
-pkgver=2.5.5
+pkgver=2.6
pkgrel=0
pkgdesc="TrueType font rendering library"
url="http://freetype.sourceforge.net"
arch="all"
license="GPL"
-depends=
-depends_dev="zlib-dev libpng-dev"
-makedepends="$depends_dev"
+depends=""
+depends_dev="libpng-dev"
+makedepends="$depends_dev zlib-dev"
subpackages="$pkgname-dev"
-source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
-20-enable-spr.patch
-30-enable-valid.patch
-40-memcpy-fix.patch
-"
+# fontconfig-ultimate https://github.com/bohoomil/fontconfig-ultimate
+_ultver="2015-06-09"
+source="http://download.savannah.gnu.org/releases/freetype/freetype-$pkgver.tar.bz2
+ fontconfig-ultimate-$_ultver.tar.gz::https://github.com/bohoomil/fontconfig-ultimate/archive/$_ultver.tar.gz
+ 40-memcpy-fix.patch"
_builddir="$srcdir/$pkgname-$pkgver"
@@ -25,6 +25,11 @@ prepare() {
msg "Applying ${i}"
patch -p0 -i $i || return 1
done
+ # apply infinality
+ for j in "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/*.patch; do
+ msg "Applying ${j}"
+ patch -p1 -i $j || return 1
+ done
}
build() {
@@ -49,17 +54,18 @@ package() {
# for compat. This should be removed once all apps are properly using
# pkg-config
ln -s freetype2 "$pkgdir"/usr/include/freetype
+
+ # install infinality profile settings
+ install -Dm644 "$srcdir"/fontconfig-ultimate-$_ultver/$pkgname/infinality-settings.sh \
+ "$pkgdir"/etc/profile.d/infinality-settings.sh || return 1
}
-md5sums="7448edfbd40c7aa5088684b0a3edb2b8 freetype-2.5.5.tar.gz
-605e03a5d95b858f566cadca1dbd316b 20-enable-spr.patch
-3f6c5739843dcbc110ee0f243c4f6bdb 30-enable-valid.patch
+md5sums="5682890cb0267f6671dd3de6eabd3e69 freetype-2.6.tar.bz2
+70a971a34af0974bb61201925aab6929 fontconfig-ultimate-2015-06-09.tar.gz
bd2d808a0c00dcf9f1d1c0a9a8227ad9 40-memcpy-fix.patch"
-sha256sums="5d03dd76c2171a7601e9ce10551d52d4471cf92cd205948e60289251daddffa8 freetype-2.5.5.tar.gz
-9ec2c8c126fa9bda4eaec779ae6234f094f8a8d85d20f947e910716df9d703ca 20-enable-spr.patch
-5f1b3b767dc1fdb1fcd3963399ac3c2263d07fe3f1f14f677d08cd0d2161ae5c 30-enable-valid.patch
+sha256sums="8469fb8124764f85029cc8247c31e132a2c5e51084ddce2a44ea32ee4ae8347e freetype-2.6.tar.bz2
+0195e8bff84ab973c001f04b9f5e9d59711444bfeebbed57ef76518975c91394 fontconfig-ultimate-2015-06-09.tar.gz
574c265c7a7032c5afb32a9807e5d04354ad0def656194cfcfff1ccca6a5540e 40-memcpy-fix.patch"
-sha512sums="1c8812252d748c6ccc5f6002b57c8a7cb0f08fe15e3c700ac8b2714c7648d756cd4af4207a765cf0d320509be6d09c74239d69e9ca6a05bb15ca6a475cf96ce3 freetype-2.5.5.tar.gz
-bd30f76003ae4e7fd324fdbdbc70f930bda418ae819e7c611c90cb2d8299dca5995edb543c7991121c3990fab6ffff03a183a08c1975d083009f7272586fc266 20-enable-spr.patch
-fdfa3c633a32bd9142f62454e12dd92442e8e02831fd34aca348aec6d00e7813130fbf267a7f4048a272596a478cfe3064df0ee9f9c06531378710f41bc2e40f 30-enable-valid.patch
+sha512sums="0242c832dcac3d9dc5d434b7f5145e63f2289d5df32f16e1c7afc1e31c3c92f0dd374e20dfef79a9ecb26b14419f42b0d897c7154f249f629c35ee7af0aa5297 freetype-2.6.tar.bz2
+766562cb90651936edb43c206b30653a50fc401c2b9affe7cad73d69adfba3aaa6362830153eda6631dc3b8f5d0fd9b02934326ff1c4a68d136555bd6a48db86 fontconfig-ultimate-2015-06-09.tar.gz
1553f7f0514238012e300bc8d0b1e260145db17fb56f13e4aa667435e98c3749c00e150caa0e318289b84bca33b9a06a68b8342575e10ac3bf5af3d5cc861537 40-memcpy-fix.patch"