void-packages/srcpkgs/tealdeer/template
Jan Christian Grünhage 76706e332c tealdeer: make tealdeer a tldr alternative
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2020-01-17 19:24:08 +01:00

31 lines
946 B
Bash

# Template file for 'tealdeer'
pkgname=tealdeer
version=1.2.0
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, 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
}
post_install() {
vlicense LICENSE-MIT
vlicense LICENSE-APACHE
mv ${DESTDIR}/usr/bin/tldr ${DESTDIR}/usr/bin/tealdeer
}