summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5941b8077269ec8c1740e9615238a2d9269b3bd7 (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
# Maintainer: Jose Riha <jose1711 gmail com>
# Based on the output of pip2arch

pkgname=python2-imutils
_pkgname=imutils
pkgver=0.4.3
pkgrel=1
pkgdesc="A series of convenience functions to make basic image processing asier with OpenCV"
url="https://github.com/jrosebr1/imutils"
depends=('python2' 'opencv')
license=('MIT')
arch=('any')
source=("https://pypi.python.org/packages/a0/cf/5f19a892b73c1992b83fbe747556984e68b2c04a3967ab52ef093d89f929/${_pkgname}-${pkgver}.tar.gz")
md5sums=('8ffda750ffbb0f250b7a893df1c2f5d7')

build() {
    cd $srcdir/${_pkgname}-${pkgver}
    python2 setup.py build
}

package() {
    cd $srcdir/${_pkgname}-${pkgver}
    python2 setup.py install --root="$pkgdir" --optimize=1 
    # rename binary to prevent clash with python-imutils
    mv $pkgdir/usr/bin/range-detector $pkgdir/usr/bin/range-detector_p2
}