Initial commit

This commit is contained in:
Anton Leontiev 2013-08-23 16:58:29 +04:00
commit e0c8ed5627
4 changed files with 86 additions and 0 deletions

14
.SRCINFO Normal file
View file

@ -0,0 +1,14 @@
pkgbase = mkdoc-svn
pkgdesc = C/C++ documentation tool
pkgver = 74
pkgrel = 1
url = http://savannah.nongnu.org/projects/mkdoc/
arch = any
license = GPL
makedepends = subversion
depends = perl
source = Makefile.patch
md5sums = 2e862d1eaf0efc01041b779479a0019f
pkgname = mkdoc-svn

6
.gitignore vendored Normal file
View file

@ -0,0 +1,6 @@
*.tar.gz
*.tar.bz2
*.tar.xz
*.tar.lz
src/
pkg/

24
Makefile.patch Normal file
View file

@ -0,0 +1,24 @@
--- src/mkdoc/Makefile 2010-08-02 16:01:09.361636372 +0000
+++ src/mkdoc-build/Makefile 2010-08-02 17:42:13.081860423 +0000
@@ -1,4 +1,4 @@
-PREFIX=/usr
+PREFIX?=/usr
DOCBOOKCSS=/usr/share/xml/docbook/xsl-stylesheets-1.75.2/html/docbook.xsl
DOCSRC=doc/top.mkdoc doc/mkdoc.conf
MKDOCFLAGS=
@@ -7,11 +7,13 @@
all: docs
-install: htmldoc
+install:
mkdir -p $(PREFIX)/bin
mkdir -p $(PREFIX)/share/mkdoc
cp -r src/* $(PREFIX)/share/mkdoc
- ln -s $(PREFIX)/share/mkdoc/mkdoc $(PREFIX)/bin/mkdoc
+ ln -s /usr/share/mkdoc/mkdoc $(PREFIX)/bin/mkdoc
+
+install-doc: htmldoc
mkdir -p $(PREFIX)/share/doc/mkdoc
cp -r doc/html $(PREFIX)/share/doc/mkdoc

42
PKGBUILD Normal file
View file

@ -0,0 +1,42 @@
# Contributor: Anton Leontiev <bunder[at]t-25.ru>
pkgname=mkdoc-svn
pkgver=74
pkgrel=1
pkgdesc="C/C++ documentation tool"
arch=("any")
url="http://savannah.nongnu.org/projects/mkdoc/"
license=('GPL')
depends=('perl')
makedepends=('subversion')
source=(Makefile.patch)
md5sums=('2e862d1eaf0efc01041b779479a0019f')
_svntrunk=svn://svn.savannah.nongnu.org/mkdoc/trunk
_svnmod=mkdoc
build() {
cd "$srcdir"
if [ -d $_svnmod/.svn ]; then
(cd $_svnmod && svn up -r $pkgver)
else
svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_svnmod-build"
cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
cd "$srcdir/$_svnmod-build"
patch -i "$srcdir/Makefile.patch"
}
package() {
cd "$srcdir/$_svnmod-build"
make PREFIX="$pkgdir/usr" install
export PATH=$PATH:$pkgdir/usr/share/mkdoc
make PREFIX="$pkgdir/usr" install-doc
}