blob: bddc0cccc354a6af61f14548d05e9e02fc18b4b4 (
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
|
# $Id$
# Maintainer: Vic Luo <vicluo96@gmail.com>
# Co-Maintainer: Mohammadreza Abdollahzadeh <morealaz at gmail dot com>
pkgname=cppreference-devhelp
pkgver=20190607
pkgrel=1
pkgdesc="Offline cppreference documentation for devhelp."
arch=('any')
url="http://en.cppreference.com/w/"
license=('CCPL:cc-by-sa')
depends=('devhelp' 'cppreference')
makedepends=('python-lxml')
# Remember to update the source here for every update. The directory is also changed.
source=("http://upload.cppreference.com/mwiki/images/8/80/cppreference-doc-${pkgver}.tar.xz")
sha256sums=('bd010ac2a3a8ba7e74cb247ea852e39fc7f37b08de2aaf50f2de17ea3832c432')
prepare() {
cd "$srcdir/cppreference-doc-${pkgver}"
sed -i 's#$(docdir)/html#$(docdir)#' Makefile
}
build() {
cd "${srcdir}/cppreference-doc-${pkgver}"
make docdir='/usr/share/doc/cppreference' doc_devhelp
}
package() {
cd "${srcdir}/cppreference-doc-${pkgver}"
install -DT -m 644 "output/cppreference-doc-en-c.devhelp2" \
"${pkgdir}/usr/share/devhelp/books/cppreference-doc-en-c/cppreference-doc-en-c.devhelp2"
install -DT -m 644 "output/cppreference-doc-en-cpp.devhelp2" \
"${pkgdir}/usr/share/devhelp/books/cppreference-doc-en-cpp/cppreference-doc-en-cpp.devhelp2"
}
# vim:set ts=2 sw=2 et:
|