# Template file for 'libump-git'
pkgname=libump-git
version=20181122
revision=3
_githash="ec0680628744f30b8fac35e41a7bd8e23e59c39f"
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
short_desc="ARMs Universal Memory Provider userspace library"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Apache-2.0"
homepage="https://github.com/linux-sunxi/libump"
distfiles="https://github.com/linux-sunxi/libump/archive/${_githash}.tar.gz"
checksum=745bbb3e6a6b2b1d8caec75d2f2e884691ceefa5c2be0480baed31dba66cf450

archs="armv7l"
provides="libump-1.0_1"
replaces="libump>=0"

pre_configure() {
	autoreconf -fi
}

libump-git-devel_package() {
	short_desc+=" - development files"
	depends="${sourcepkg}-${version}_${revision}"
	provides="libump-devel-1.0_1"
	replaces="libump-devel>=0"
	pkg_install() {
		vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
		vmove usr/lib/pkgconfig
	}
}
