void-packages/srcpkgs/units/template
2020-11-25 23:46:46 +01:00

21 lines
724 B
Bash

# Template file for 'units'
pkgname=units
version=2.21
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=6c3e80a9f980589fd962a5852a2674642257db1c5fd5b27c4d9e664f3486cbaf
python_version=3
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
}