summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e9bdce4d9362df7fdb432a9a57e2cc642b84553 (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
33
34
35
36
37
38
39
40
41
# $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
# Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>

pkgbase=python-selection
pkgname=('python-selection' 'python2-selection')
pkgver=0.0.9
pkgrel=1 
pkgdesc="API to extract content from HTML & XML documents"
arch=('any')
url="https://pypi.python.org/pypi/selection"
license=('MIT')
makedepends=('python' 'python2')
source=(https://pypi.python.org/packages/source/s/selection/selection-${pkgver}.tar.gz)
sha256sums=('2e89d6eea792447a7c23da77b81fd7df84526791f64cbff4a50edf363697759e')

build() {
  cd $srcdir
  cp -r selection-$pkgver selection2-$pkgver
}

check() {
  cd $srcdir/selection-$pkgver 
  python3 setup.py check
  
  cd $srcdir/selection2-$pkgver 
  python2 setup.py check  
}

package_python-selection() {
  depends=('python' 'python-lxml' 'python-six' 'python-weblib')
  cd "$srcdir/selection-$pkgver"
  python3 setup.py install --root "${pkgdir}" --optimize=1
}

package_python2-selection() {
  depends=('python2' 'python2-lxml' 'python2-six' 'python2-weblib')
  cd "$srcdir/selection2-$pkgver"
  python2 setup.py install --root "${pkgdir}" --optimize=1
}

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