22 lines
724 B
Bash
22 lines
724 B
Bash
# Template file for 'units'
|
|
pkgname=units
|
|
version=2.20
|
|
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=c5e298c87516711f3bedb9315583bad0965c5d3d0bb587f9837a9af12a50fadc
|
|
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
|
|
}
|