summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35f8e4a6e5d1f4b577b522d380835a62a29bd62b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: alienzj <alienchuj@gmail.com>

pkgname=python-pygraphviz
pkgver=1.5
pkgrel=1
pkgdesc="Python interface to Graphviz graph drawing package"
arch=('i686' 'x86_64')
url="https://pygraphviz.github.io/"
license=('LGPL')
depends=('python' 'graphviz')
makedepends=('python-setuptools')
source=("https://github.com/pygraphviz/pygraphviz/archive/pygraphviz-1.5.tar.gz")
md5sums=('1ef3e258e0ec0d22218adcce2e32dedf')

prepare() {
  cd "$srcdir/pygraphviz-pygraphviz-1.5"
  echo "1.5"
}

build() {
  cd "$srcdir/pygraphviz-pygraphviz-1.5"
  python setup.py build
}

package() {
  cd "$srcdir/pygraphviz-pygraphviz-1.5"
  python setup.py install --prefix=/usr --root="${pkgdir}" -O1 --skip-build
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
  mv "$pkgdir/usr/share/doc/pygraphviz-1.5" "$pkgdir/usr/share/doc/${pkgname}-1.5"
}

# vim:set ts=2 sw=2 et: