39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
# Template file for 'himalaya'
|
|
pkgname=himalaya
|
|
version=0.9.0
|
|
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=9a5593a3a92dcce8227cea45870a88432d8df3a012636eb5461165cf599dbcbb
|
|
|
|
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
|
|
}
|