summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76d42ebf3cc7ad6aa4fbf9e700475262682f0460 (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
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=webmacs-docs-git
pkgver=r791.35f1743
pkgrel=1
pkgdesc="browser for keyboard-based web navigation"
arch=('any')
url="https://github.com/parkouss/webmacs"
license=('GPL3')
makedepends=('webmacs-git' 'python-sphinx' 'git')
source=("git+https://github.com/parkouss/webmacs")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname%-docs-git}"
  printf "r%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

build() {
  cd "${pkgname%-docs-git}"/docs
  make texinfo man 
  cd _build/texinfo
  make
}

package() {
  cd "${pkgname%-docs-git}"/docs/_build/
  
  install -Dm644 texinfo/${pkgname%-docs-git}.info "$pkgdir"/usr/share/info/${pkgname%-docs-git}.info
  install -Dm644 man/${pkgname%-docs-git}.1 "$pkgdir"/usr/share/man/man1/${pkgname%-docs-git}.1
}