# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=libmaa
pkgver=1.3.2
pkgrel=0
pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
url="https://sourceforge.net/projects/dict/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="libtool perl flex"
install=""
subpackages="$pkgname-dev"
source="http://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz"
options="libtool"

builddir="${srcdir}/${pkgname}-${pkgver}"

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

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

md5sums="01dab2cde2e0a322653e45bfa63537ee  libmaa-1.3.2.tar.gz"
sha256sums="59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5  libmaa-1.3.2.tar.gz"
sha512sums="dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176  libmaa-1.3.2.tar.gz"
