summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed1a746a44c53f49ecd63f6d23de39e1d6a35980 (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
64
65
66
# Maintainer: Ryan Greenup <ryan.greenup@protonmail.com>

pkgname=cadmus-notes
pkgver=0.2
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'
            '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}/$HOME/.cadmus";
 mkdir -p "${pkgdir}/$HOME/.local/bin"
 rsync -av ${srcdir}/cadmus/* "${pkgdir}/$HOME/.cadmus/"
 ln -rsf "${pkgdir}/$HOME/.cadmus/bin/cadmus" "${pkgdir}/$HOME/.local/bin"

chmod 700 "${pkgdir}/$HOME"
chmod 755 "${pkgdir}/$HOME/.cadmus"
chmod 700 "${pkgdir}/$HOME/.local"

}