void-packages/srcpkgs/himalaya/template

39 lines
1.0 KiB
Bash

# Template file for 'himalaya'
pkgname=himalaya
version=0.8.4
revision=1
build_style=cargo
build_helper="qemu"
hostmakedepends="pkg-config"
makedepends="sqlite-devel libzstd-devel"
short_desc="CLI email client"
maintainer="Gadzhi Kharkharov <me@kkga.me>"
license="MIT"
homepage="https://pimalaya.org/himalaya/"
changelog="https://raw.githubusercontent.com/soywod/himalaya/master/CHANGELOG.md"
distfiles="https://github.com/soywod/himalaya/archive/refs/tags/v${version}.tar.gz"
checksum=61f0535c37baac58a6cae8e793fd8d9be84ab47d74e69bdc3cf43e5676e6cb6d
post_patch() {
cargo update --package crossbeam-channel@0.5.6 --precise 0.5.8
}
post_install() {
vlicense LICENSE
vdoc README.md
local himalaya="${DESTDIR}/usr/bin/himalaya"
vtargetrun ${himalaya} man .
for page in himalaya*.1; do
vman ${page}
done
for shell in bash fish zsh; do
vtargetrun ${himalaya} completion ${shell} > himalaya.${shell}
vcompletion himalaya.${shell} ${shell}
done
vsconf config.sample.toml config.toml
vinstall assets/himalaya.desktop 644 usr/share/applications
}