summaryrefslogtreecommitdiff
path: root/user/fontconfig/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:44:29 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-04 23:44:29 -0500
commit12ecf1d2aeed63b38407e5fdf42dbab294867113 (patch)
tree4eae396517d52f6fe0815e9d389a467734111f15 /user/fontconfig/APKBUILD
parent6c59b0724d0d2caee04f88846e33ae3ddd7c301f (diff)
downloadpackages-12ecf1d2aeed63b38407e5fdf42dbab294867113.tar.gz
packages-12ecf1d2aeed63b38407e5fdf42dbab294867113.tar.bz2
packages-12ecf1d2aeed63b38407e5fdf42dbab294867113.tar.xz
packages-12ecf1d2aeed63b38407e5fdf42dbab294867113.zip
user/fontconfig: pull in, bump, fix license/URL
Diffstat (limited to 'user/fontconfig/APKBUILD')
-rw-r--r--user/fontconfig/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/fontconfig/APKBUILD b/user/fontconfig/APKBUILD
new file mode 100644
index 000000000..45b62a8ca
--- /dev/null
+++ b/user/fontconfig/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer:
+pkgname=fontconfig
+pkgver=2.13.0
+pkgrel=0
+pkgdesc="Library for configuring and customizing font access"
+url="https://www.freedesktop.org/wiki/Software/fontconfig/"
+arch="all"
+options="!check" # Fails test with fixed fonts
+license="MIT"
+depends=""
+makedepends="freetype-dev expat-dev python3-dev gperf util-linux-dev"
+triggers="$pkgname.trigger=/usr/share/fonts/*"
+subpackages="$pkgname-doc $pkgname-dev"
+source="https://www.freedesktop.org/software/fontconfig/release/${pkgname}-${pkgver}.tar.gz"
+
+build() {
+ cd "$builddir"
+ # regenerate hash functions
+ rm -f src/fcobjshash.h
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --enable-static \
+ --disable-docs
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make -j1 DESTDIR="$pkgdir" install
+
+ install -m644 -D COPYING "$pkgdir"/usr/share/licenses/"${pkgname}"/COPYING
+}
+
+sha512sums="5c0f98d1ac8e2ce0b2b59e75a86123967873e71ca3dd0d97911d6e6845a3cb2e099093a92933f55fe5a1c61821de26c1fa07141319c563c6280226b2cdea08e2 fontconfig-2.13.0.tar.gz"