void-packages/srcpkgs/units/template
2020-04-21 18:45:14 -04:00

21 lines
736 B
Bash

# Template file for 'units'
pkgname=units
version=2.19
revision=1
build_style=gnu-configure
hostmakedepends="python3"
makedepends="readline-devel"
depends="python3 python3-Unidecode"
short_desc="Converts between different units"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/units/units.html"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=4262136bdfc152b63ff5a9b93a7d80ce18b5e8bebdcffddc932dda769e306556
python_version=2 #unverified
post_install() {
# Tries to install to /usr/com/currency.units
rm -f -- "${DESTDIR}"/usr/share/units/currency.units
mv "${DESTDIR}"/usr/com/units/currency.units "${DESTDIR}"/usr/share/units/currency.units
}