void-packages/srcpkgs/units/template

20 lines
704 B
Bash

# Template file for 'units'
pkgname=units
version=2.18
revision=1
build_style=gnu-configure
hostmakedepends="python"
makedepends="readline-devel"
depends="python python-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=64959c231c280ceb4f3e6ae6a19b918247b6174833f7f1894704c444869c4678
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
}