You are not logged in.
odfpy is a nice library for producing ODF documents with python. I've created a PKGBUILD for it, any comments before I submit it to the AUR?
# Contributor: Joel Schaerer <joel.schaerer@laposte.net>
pkgname=odfpy
pkgver=0.7
pkgrel=1
pkgdesc="A complete API for OpenDocument in Python"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfpy"
license=('GPL')
depends=('python')
source=(http://opendocumentfellowship.com/files/odfpy-${pkgver}.tgz)
md5sums=('cea1c5bf445d3eeacca23f3de5ac0f94')
build() {
cd "$srcdir/${pkgname}-${pkgver}"
python setup.py build
python setup.py install --prefix=${pkgdir}/usr
}
Autojump, the fastest way to navigate your filesystem from the command line!
Offline
svn version ones from the site:
odfpy
pkgname=odfpy
pkgver=442
pkgrel=2
pkgdesc="A complete API for OpenDocument in Python"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfpy"
license=('GPL')
depends=('python')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odfpy/trunk"
_svnmod="odfpy"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
python setup.py build
python setup.py install --root=${startdir}/pkg
rm -rf ${startdir}/src/${_svnmod}-build
}
odftools
pkgname=odftools
pkgver=324
pkgrel=2
pkgdesc="a set of conversion tools for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odftools"
license=('GPL')
depends=('python')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odftools/trunk"
_svnmod="odftools"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co ${_svntrunk} ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
find . -type d -name '\.svn' -exec rm -rf {} \;
cd ${startdir}/src/${_svnmod}-build
install -d ${pkgdir}/usr/{bin,share/man/man1}
make
make PREFIX=${pkgdir}/usr install
rm -rf ${startdir}/src/${_svnmod}-build
}
odf2html
pkgname=odf2html
pkgver=349
pkgrel=2
pkgdesc="a set of conversion tools for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odftools"
license=('GPL')
depends=('libxslt')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/html2odf/trunk"
_svnmod="odf2html"
build() {
cd ${startdir}/src
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
install -d ${pkgdir}/usr/share/odftools/xsl
make
install -m 644 html2odf-complete.xsl \
${pkgdir}/usr/share/odftools/html2odf-complete.xsl
install -m 644 html2odf.xsl \
${pkgdir}/usr/share/odftools/html2odf.xsl
cp -r xsl/*.xsl ${pkgdir}/usr/share/odftools/xsl
chmod 0644 ${pkgdir}/usr/share/odftools/xsl/*.xsl
rm -rf ${startdir}/src/${_svnmod}-build
}
odfviewer
pkgname=odfviewer
pkgver=350
pkgrel=2
pkgdesc="Cross-platform viewer for OpenDocument files"
arch=('i686' 'x86_64')
url="http://opendocumentfellowship.com/projects/odfviewer"
license=('GPL')
depends=('xulrunner')
source=()
md5sums=()
_svntrunk="http://opendocumentfellowship.com/repos/odfviewer/trunk"
_svnmod="odfviewer"
build() {
cd ${startdir}/src
[ -d ${_svnmod}-build ] && rm -rf ${_svnmod}-build
msg "Connecting to svn server...."
if [ -d ${_svnmod}/.svn ]; then
(cd ${_svnmod} && svn up -r ${pkgver})
else
svn co $_svntrunk ${_svnmod}
fi
msg "SVN checkout done or server timeout"
msg "Starting make..."
cp -r ${startdir}/src/${_svnmod} ${startdir}/src/${_svnmod}-build
cd ${startdir}/src/${_svnmod}-build
find . -type d -name '\.svn' -exec rm -rf {} \;
install -d ${pkgdir}/opt/odfviewer
cp -r * ${pkgdir}/opt/odfviewer
install -D -m 755 ${startdir}/odfviewer ${pkgdir}/usr/bin/odfviewer
rm -rf ${startdir}/src/${_svnmod}-build
}
script of odfviewer
#!/bin/sh
cd /opt/odfviewer
xulrunner application.ini $@
Last edited by superkevjr (2008-06-04 12:45:23)
Offline