tealdeer: make tealdeer a tldr alternative

Signed-off-by: Nathan Owens <ndowens04@gmail.com>
This commit is contained in:
Jan Christian Grünhage 2020-01-01 18:54:17 -03:00 committed by Jürgen Buchmüller
parent bab228ff20
commit 76706e332c
2 changed files with 11 additions and 2 deletions

View file

@ -1,18 +1,24 @@
# Template file for 'tealdeer'
pkgname=tealdeer
version=1.2.0
revision=1
revision=2
build_style=cargo
hostmakedepends="pkg-config"
makedepends="libressl-devel"
depends="libressl"
short_desc="Very fast implementation of tldr in Rust"
maintainer="jcgruenhage <jan.christian@gruenhage.xyz>"
license="MIT license or Apache License, Version 2"
license="MIT, Apache-2.0"
homepage="https://github.com/dbrgn/tealdeer"
changelog="https://raw.githubusercontent.com/dbrgn/tealdeer/v${version}/CHANGELOG.md"
distfiles="https://github.com/dbrgn/tealdeer/archive/v${version}.tar.gz"
checksum=5cf286059b823501d05da445b9b7a609ec2da91d711d990df76397f79d800c52
alternatives="tldr:/usr/bin/tldr:/usr/bin/tealdeer"
pre_build() {
cargo update --package openssl --precise 0.10.26
cargo update --package openssl-sys --precise 0.9.53
}
pre_build() {
cargo update --package openssl-sys --precise 0.9.53
@ -20,4 +26,6 @@ pre_build() {
post_install() {
vlicense LICENSE-MIT
vlicense LICENSE-APACHE
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/tealdeer
}

View file

@ -12,6 +12,7 @@ homepage="https://isacikgoz.me/tldr/"
distfiles="https://github.com/isacikgoz/tldr/archive/v${version}.tar.gz"
checksum=e377942c6dd9cbe3f9f55b7614e17b7c5f0694b326ad3993d0cde59aca8dc8fa
alternatives="tldr:tldr:/usr/bin/gtldr"
conflicts="tealdeer<=1.2.0_1"
post_install() {
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/gtldr