updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / mkdoc-svn / PKGBUILD
blob526c9ee26b8a34b6287772ac20ca0ecacc326054
1 # Contributor: Anton Leontiev <bunder[at]t-25.ru>
2 pkgname=mkdoc-svn
3 pkgver=74
4 pkgrel=1
5 pkgdesc="C/C++ documentation tool"
6 arch=("any")
7 url="http://savannah.nongnu.org/projects/mkdoc/"
8 license=('GPL')
10 depends=('perl')
11 makedepends=('subversion')
12 source=(Makefile.patch)
13 md5sums=('2e862d1eaf0efc01041b779479a0019f')
15 _svntrunk=svn://svn.savannah.nongnu.org/mkdoc/trunk
16 _svnmod=mkdoc
18 build() {
19   cd "$srcdir"
21   if [ -d $_svnmod/.svn ]; then
22     (cd $_svnmod && svn up -r $pkgver)
23   else
24     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
25   fi
27   msg "SVN checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_svnmod-build"
31   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
32   cd "$srcdir/$_svnmod-build"
34   patch -i "$srcdir/Makefile.patch"
37 package() {
38   cd "$srcdir/$_svnmod-build"
39   make PREFIX="$pkgdir/usr" install
40   export PATH=$PATH:$pkgdir/usr/share/mkdoc
41   make PREFIX="$pkgdir/usr" install-doc