diff --git a/srcpkgs/tldr/template b/srcpkgs/tldr/template index 8be3692e80fbab..207be2f05c8d66 100644 --- a/srcpkgs/tldr/template +++ b/srcpkgs/tldr/template @@ -1,21 +1,19 @@ # Template file for 'tldr' pkgname=tldr -version=1.0.0.alpha -revision=5 -_version=${version/.alpha/-alpha} -build_style=go -go_import_path="github.com/isacikgoz/tldr" -go_package="./cmd/tldr" +version=1.12.0 +revision=1 +build_style=cargo depends="git" -short_desc="Fast and interactive TLDR client written in Go" +short_desc="Official tldr client written in Rust" maintainer="Orphaned " license="MIT" -homepage="https://isacikgoz.me/tldr/" -distfiles="https://github.com/isacikgoz/tldr/archive/v${_version}.tar.gz" -checksum=d40e1c602d84acc67cdee3b9bed001fb8ec198c7049c1d05eb071ab05af66c19 -alternatives="tldr:tldr:/usr/bin/gtldr" +homepage="https://tldr.sh/" +distfiles="https://github.com/tldr-pages/tlrc/archive/v${version}.tar.gz" +checksum=402942f1bc37301da9dd1870294d7edd8e81989a178c6439cfbd866d9a9bf67a +alternatives="tldr:tldr:/usr/bin/tlrc" post_install() { - mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/gtldr + # Rename to tlrc + mark as an alternative to avoid conflict with tealdeer and potentially other clients + mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/tlrc vlicense LICENSE }