# Template file for 'libtommath' pkgname=libtommath version=1.0.1 revision=1 hostmakedepends="libtool" short_desc="A portable number theoretic multiple-precision integer library" maintainer="Leah Neukirchen " license="Public domain" homepage="http://www.libtom.org/LibTomMath/" distfiles="https://github.com/libtom/libtommath/releases/download/v${version}/ltm-${version}.tar.xz" checksum=47032fb39d698ce4cf9c9c462c198e6b08790ce8203ad1224086b9b978636c69 do_build() { if [ "$CROSS_BUILD" ]; then cp /usr/bin/libtool . sed -e "s,CCLD=.*,CCLD=$CC,g;s,CC=.*,CC=$CC,g" -i libtool sed -e 's,libtool,./libtool,g' -i makefile.shared fi make -f makefile.shared } do_install() { make -f makefile.shared PREFIX=/usr DESTDIR=${DESTDIR} install } libtommath-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files" pkg_install() { vmove usr/include vmove "usr/lib/*.a" vmove "usr/lib/*.so" } }