summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d167bc2ee1521d5cb33d3fc7b3d6cbf0b2a3c14b (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
# Maintainer: Simon Wilper <sxw@chronowerks.de>

pkgname=('cutelyst-tutorial-git')
pkgver=1.0.0
pkgrel=2
pkgdesc="The Wiki tutorial from Github as a local copy"
arch=('any')
url="http://cutelyst.org"
license=('LGPL2.1')
makedepends=('python2')
source=('git+https://github.com/cutelyst/cutelyst.wiki.git')
md5sums=('SKIP')
_git_name='cutelyst.wiki'

build() {
  test ! -d html && mkdir html
  for md in ${_git_name}/Tut*.md; do
    echo -n "$md..."
    python ../proc_tut.py $md html/$(basename $md .md).html
    echo " done"
  done
}

package() {
  cd $startdir
  local t=usr/share/doc/cutelyst/tutorial
  install -d -m755 ${pkgdir}/$t/
  install -m644 ${srcdir}/html/* ${pkgdir}/$t/
  install -m644 default.css ${pkgdir}/$t/
}