# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
setvar pkgname = 'mythes'
setvar pkgver = '1.2.4'
setvar pkgrel = '1'
setvar pkgdesc = ""A simple thesaurus""
setvar url = ""http://hunspell.sourceforge.net/""
setvar arch = ""all""
setvar license = ""GPL2+ LGPL2+ MPL 1.1""
setvar subpackages = ""$pkgname-dev""
setvar depends_dev = ""perl hunspell-dev""
setvar makedepends = "$depends_dev"
setvar source = ""http://downloads.sourceforge.net/hunspell/$pkgname-$pkgver.tar.gz""
setvar builddir = ""$srcdir/$pkgname-$pkgver""

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--disable-dependency-tracking \
		--enable-fast-install
	make
}

proc package {
	cd $builddir
	make -j1 DESTDIR="$pkgdir" install
}

proc dev {
	default_dev

	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr
}

setvar sha512sums = ""a04da39812bcfb1391a2cba7de73e955eafe141679ec03ed6657d03bebf360b432480d0037dff9ed72a1dfda5a70d77d44ac2bb14cdb109fd8e2a38376feee21  mythes-1.2.4.tar.gz""