-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
38 lines (33 loc) · 1.04 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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
}