# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
setvar pkgname = 'libpagemaker'
setvar pkgver = '0.0.3'
setvar pkgrel = '0'
setvar pkgdesc = ""Import filter and tools for PageMaker""
setvar url = ""https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker""
setvar arch = ""all""
setvar license = ""MPL2""
setvar depends = """"
setvar depends_dev = ""boost-dev librevenge-dev""
setvar makedepends = ""$depends_dev doxygen""
setvar install = """"
setvar subpackages = ""$pkgname-dev $pkgname-doc $pkgname-tools""
setvar source = ""http://dev-www.libreoffice.org/src/$pkgname/$pkgname-$pkgver.tar.xz""

setvar builddir = ""$srcdir"/$pkgname-$pkgver"

proc build {
	cd $builddir
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

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

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

setvar md5sums = ""9f377b0690fa6e96a94bb309509860e9  libpagemaker-0.0.3.tar.xz""
setvar sha256sums = ""d896dc55dafd84ee3441e0ca497b810809f9eea44805a495c3843412309036d6  libpagemaker-0.0.3.tar.xz""
setvar sha512sums = ""f9a5cb8b2cdfaf550002d5d078eb79537ed29614a2433f8d41101f1e35e9536cbb324c1d96328d21e2d2e0f21ff58d807813e51f8c660b199843fc8710ae29e0  libpagemaker-0.0.3.tar.xz""