summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 199584c75f0898038f00916ab14c5a5049c3d63a (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
# Maintainer: Score_Under <seejay 11@gmail com>
options=(!strip)  # Don't strip libs because there aren't any
DOC_DIRS=(opt/hydrus/help)

pkgname=hydrus-docs
upstream_name=hydrus
pkgver=594
pkgrel=1
pkgdesc="Danbooru-like image tagging and searching system for the desktop (documentation)"
arch=(any)
license=(custom)
url=http://hydrusnetwork.github.io/hydrus/
depends=()
makedepends=(git 'mkdocs>=1.3.0' mkdocs-material python-regex 'python-pymdown-extensions>=9.4')
source=("${upstream_name}::git+https://github.com/hydrusnetwork/${upstream_name}.git#commit=739591daf4a1b3bad21204b4ee1f8fe5e3b0f8a1")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/${upstream_name}"

  msg 'Building documentation...'
  mkdocs build -d help
}

package() {
  cd "${srcdir}/${upstream_name}"

  # Create /opt/hydrus and copy hydrus docs to there
  install -m755 -d "${pkgdir}/opt/hydrus"
  cp -r help "${pkgdir}/opt/hydrus/"

  # Install license files
  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -m644 license.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
}