void-packages/srcpkgs/units/template
2019-07-18 07:27:45 +02:00

20 lines
707 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="Juan RP <xtraeme@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
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
}