void-packages/srcpkgs/units/template

21 lines
703 B
Bash

# Template file for 'units'
pkgname=units
version=2.17
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.eu>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/units/units.html"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=1f03c9f9aef1fb0ccddc6fb545f2925f7754de2bfa67d4e62f8758d7edfd5dd8
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
}