Skip to content
Snippets Groups Projects
Commit 742bd573 authored by alice's avatar alice Committed by Kevin Daudt
Browse files

community/units: split units_cur bin

only used to update the currency database, and needs python3 to do so
parent 6fd6a954
No related branches found
No related tags found
1 merge request!27976community/units: split units_cur bin
Pipeline #105453 canceled
......@@ -2,18 +2,17 @@
# Maintainer: Miguel Terron <miguel.a.terron@gmail.com>
pkgname=units
pkgver=2.21
pkgrel=1
pkgrel=2
pkgdesc="Units conversion and calculation program"
url="https://www.gnu.org/software/units/"
arch="all"
license="GPL-3.0-only"
makedepends="readline-dev python3 py3-requests"
subpackages="$pkgname-doc"
subpackages="$pkgname-doc $pkgname-cur-update:_cur"
source="https://ftp.gnu.org/gnu/units/units-$pkgver.tar.gz"
build() {
export PYTHON=$(which python3)
sed -i "1c #!$PYTHON" units_cur
export PYTHON="$(command -v python3)"
./configure \
--build=$CBUILD \
--host=$CHOST \
......@@ -32,6 +31,13 @@ package() {
make DESTDIR="$pkgdir" install
}
_cur() {
pkgdesc="$pkgdesc (currency database updater)"
depends="units py3-requests python3"
amove usr/bin/units_cur
}
sha512sums="
34bacff606f12aa5b2e59170f6b2142277aa1121d79610a51b57f07f17ae2dbdfbbb0e60be34522f367679cc152408f77c1ebb551016224d23f81c21f4b3ba62 units-2.21.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment