# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=libuninameslist
pkgver=20170807
pkgrel=0
pkgdesc="A Library of Unicode names and annotation data"
url="https://github.com/fontforge/libuninameslist"
arch="all"
license="BSD-3-Clause"
source="https://github.com/fontforge/$pkgname/releases/download/$pkgver/$pkgname-dist-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
makedepends="autoconf automake libtool"
subpackages="$pkgname-dev"

prepare() {
        default_prepare

        cd "$builddir"
        autoreconf -i
        automake --foreign
}

build() {
        cd "$builddir"
        ./configure --prefix=/usr
        make
}

check() {
        cd "$builddir"
        make check
}

package() {
        cd "$builddir"
        make DESTDIR="$pkgdir" install
}
sha512sums="f7ff21bff4322251e35e6957abdb1f6a17a54032c094ec71f68a42156cc10095680e0ea9cfde4d26ed7139e9d10af6d3e901eb4de2c2e430febf472f61dc039e  libuninameslist-dist-20170807.tar.gz"
