summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 023f8652c8f88850d3a6204825a386d986cc2cd0 (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
# Maintainer: John Fitch <john@johnzfitch.com>
pkgname=docs-browser
pkgver=1.0.0
pkgrel=1
pkgdesc="Unified documentation browser with Walker integration for Hyprland desktops"
arch=('any')
url="https://github.com/johnzfitch/docs-browser"
license=('MIT')
depends=('bash' 'walker' 'wl-clipboard')
optdepends=(
    'bat: syntax-highlighted preview'
    'ghostty: default terminal emulator'
    'hyprland: window tagging support'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')

package() {
    cd "${pkgname}-${pkgver}"

    # Install the script
    install -Dm755 docs-browser "${pkgdir}/usr/bin/docs-browser"

    # Install documentation wikis
    install -dm755 "${pkgdir}/usr/share/docs-browser/wikis"
    cp -r wikis/* "${pkgdir}/usr/share/docs-browser/wikis/"

    # Install icons
    install -dm755 "${pkgdir}/usr/share/docs-browser/icons"
    cp -r icons/* "${pkgdir}/usr/share/docs-browser/icons/"

    # Install license
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}