# Contributor: Ed Robinson <ed@reevoo.com>
# Maintainer: Ed Robinson <ed@reevoo.com>
pkgname=libspiro
pkgver=0.5.20150702
pkgrel=0
pkgdesc="Spiro is the creation of Raph Levien. It simplifies the drawing of beautiful curves."
url="https://github.com/fontforge/libspiro"
arch="all"
license="GPL-3.0"
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 -Wall
}

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

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

package() {
        cd "$builddir"
        make DESTDIR="$pkgdir" install
}
sha512sums="ae09915b2738cc2448df2cb00831e65fa45e887a7af9631d7361f5d2fca0b800588ea1d7c74c42e0e250835f3a322e64d44a7b18b2fd6641ac61e6adc1f03da8  libspiro-dist-0.5.20150702.tar.gz"
