blob: fdd87510ae9fdb92d82c25bc52adcedd5a502792 (
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=609
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=86f4d04b57e4db5dad02a415e874dca42e811fdf")
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}/"
}
|