updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / opaf-svn / PKGBUILD
blob4aa6e698639c18860e1847f9ffb9e6a527291539
1 # Maintainer: Jan Lieven <jan [at] das [minus] labor [dot] org>
2 pkgname=opaf-svn
3 _pkgname=opaf
4 pkgver=2
5 pkgrel=2
6 pkgdesc="An open PDF analysis framework"
7 arch=(any)
8 url="http://opaf.googlecode.com/"
9 license=('GPL')
10 depends=(python-matplotlib
11          python-ply
12          python-networkx
13          python-pygraphviz
14          python-lxml)
15 optdepends=()
16 source=(opaf.sh)
17 _svntrunk=http://opaf.googlecode.com/svn/trunk/
18 build() {
19   if [ -d ${srcdir}/${_pkgname}/.svn ]; then
20     msg 'Updating...'
21     svn up ${srcdir}/${_pkgname}
22   else
23     msg 'Checking out...'
24     svn co ${_svntrunk} ${srcdir}/${_pkgname}
25   fi
28 package() {
29   cd ${srcdir}
31   install -D -d ${_pkgname}/ ${pkgdir}/opt/opaf/
32   install -m644 ${_pkgname}/*.py ${pkgdir}/opt/opaf/
33   install -D -d ${_pkgname}/examples/ ${pkgdir}/opt/opaf/examples/
34   install -m644 ${_pkgname}/examples/* ${pkgdir}/opt/opaf/examples/
35   install -D -d ${_pkgname}/ply/ ${pkgdir}/opt/opaf/ply/
36   install -m644  ${_pkgname}/ply/* ${pkgdir}/opt/opaf/ply/
37   install -D -m755 opaf.sh ${pkgdir}/usr/bin/opaf.sh
40 # vim:set ts=2 sw=2 et:
41 sha256sums=('eece2dbc4923f933c7ea5a3c1cac67c3b081559e0a9d745bf299710bd58d1c3b')