updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / cppreference-git / PKGBUILD
blob59ef32b271f9ca6050baef94db75383eddfc0bdc
1 # Maintainer: Tianjiao Yin <ytj000@gmail.com>
3 pkgname=cppreference-git
4 pkgver=20111011
5 pkgrel=1
6 pkgdesc="A complete reference for the features in the C++ Standard Library. "
7 arch=('any')
8 url="http://en.cppreference.com/"
9 license=('CCPL:cc-by-sa')
10 makedepends=('git' 'libxslt' 'httrack')
11 provides=(cppreference)
12 conflicts=(cppreference)
14 _gitroot="git://github.com/p12tic/cppreference-doc.git"
15 _gitname="cppreference-doc"
17 build() {
18   cd $srcdir
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d $srcdir/$_gitname ]] ; then
22     cd $_gitname
23     git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
28   
29   msg "GIT checkout done"
30   msg "Starting make..."
32   git clone $srcdir/$_gitname $srcdir/$_gitname-build
33   cd $srcdir/$_gitname-build
35   mkdir output
36   make source
37   make
40 package() { 
41   mkdir -p $pkgdir/usr/share/doc
42   mv $srcdir/${_gitname}-build/output $pkgdir/usr/share/doc/cppreference
43
45 # vim:set ts=2 sw=2 et: