summaryrefslogtreecommitdiff
path: root/user/libuninameslist/APKBUILD
blob: a3b80b05a259c1c13a102c056881aee3acddc3f3 (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
41
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=libuninameslist
pkgver=20200413
pkgrel=0
pkgdesc="Library of Unicode names and annotation data"
url=" "
arch="all"
license="BSD-3-Clause"
depends=""
makedepends="python3-dev"
subpackages="$pkgname-dev $pkgname-doc py3-uninameslist:py3:noarch"
source="https://github.com/fontforge/libuninameslist/releases/download/$pkgver/libuninameslist-dist-$pkgver.tar.gz"

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

check() {
	make check
}

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

py3() {
	pkgdesc="$pkgdesc (Python 3 bindings)"
	depends="python3"
	cd "$builddir"/py
	python3 setup.py install --prefix=/usr --root="$subpkgdir"
}

sha512sums="88befff4bf7efed149b4e3a5d58a733b2cb6477e103ec34529ff02a88f8c72a6fc9d7b0be9e97cd539a75c8ebe5e4127cdf03a568da2f219157174b9b585b2a3  libuninameslist-dist-20200413.tar.gz"