blob: 4781fd0ebef2b9448fc9c9a560c0ab296175e260 (
plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Ryan Greenup <ryan.greenup @ protonmail dot com>
pkgname=cadmus-notes
pkgver=1.0
pkgrel=1
pkgdesc="Modular Shell Scripts for an MD Notebook"
arch=('x86_64')
url="ryangreenup.github.io/cadmus"
license=('GPL3')
provides=('cadmus')
makedepends=(git)
depends=(
recoll
tmsu
ripgrep
fd
nodejs
bat
coreutils
sed
grep
jq
pandoc
ranger
recode
sd
skim
xclip
iproute2
)
## These aren't in the official repos and could have
## been installed with cargo
optdepends=('nodejs-markserv: Preview Support'
'tectonic: Additional option for PDF Export'
'mdcat: Pretty Print'
## These are just optional
'texlive-core: PDF Export'
'wmctrl: Move Windows'
'wl-clipboard: Clipboard for Wayland')
source=("git+https://github.com/RyanGreenup/cadmus.git")
# source=("git+https://github.com/RyanGreenup/cadmus.git#branch=makepkg")
sha256sums=('SKIP')
package() {
################################################################################
# If I wanted to actually install it by splitting up the binaries and resources
################################################################################
# install -Dm755 "$srcdir/cadmus/bin/*" -t "${pkgdir}/usr/bin/"
# install -Dm644 "${srcdir}/README.md" -t "${pkgdir}/usr/share/doc/${pkgname%-bin}"
# install -d "${srcdir}/cadmus/" -Dt "${pkgdir}/$HOME/.cadmus"
################################################################################
# Using the portable philosphy that I've previously settled on
################################################################################
mkdir -p "${pkgdir}/opt/.cadmus";
mkdir -p "${pkgdir}/usr/bin";
rsync -av ${srcdir}/cadmus/* "${pkgdir}/opt/cadmus/"
ln -rsf "${pkgdir}/opt/cadmus/bin/cadmus" "${pkgdir}/usr/bin/cadmus"
}
|