summaryrefslogtreecommitdiff
path: root/user/fontforge/APKBUILD
blob: 16a69b3b60c8352f51fb698db1e3a5dbfbd7259f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=fontforge
pkgver=2.0.20170731
pkgrel=0
pkgdesc="Open source font editor"
url="https://fontforge.github.io/en-US/"
arch="all"
license="GPL-3.0+ AND BSD-3-Clause"
depends="desktop-file-utils shared-mime-info"
makedepends="freetype-dev giflib-dev glib-dev libjpeg-turbo-dev
	libuninameslist-dev libpng-dev libx11-dev libxml2-dev pango-dev
	python3-dev tiff-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://github.com/fontforge/fontforge/releases/download/${pkgver/2.0./}/fontforge-dist-${pkgver/2.0./}.tar.xz"

build() {
	cd "$builddir"
	PYTHON=python3 ./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	cd "$builddir"
	# skip test 53; it doesn't work.
	make check TESTSUITEFLAGS="1-52 54"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="26f7a40714460716a24dd0229fdb027f3766bcc48db64b8993436ddcb6277898f9f3b67ad4fc0be515b2b38e01370d1c7d9ee3c6ece1be862b7d8c9882411f11  fontforge-dist-20170731.tar.xz"