summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0f1188e14f27bae68509f07bbbd1a6c521f7afc3 (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
# Maintainer: Lex Black <autumn-wind at web dot de>
# Contributor: Dominik PieczyƄski <dominik.pieczynski@gmail.com>

_pkgname=picamera
pkgname=python-${_pkgname}
pkgver=1.13
pkgrel=3
pkgdesc="pure Python interface to the Raspberry Pi camera module"
arch=('any')
url="https://pypi.python.org/pypi/picamera/"
license=('BSD')
depends=('python' 'raspberrypi-firmware')
makedepends=('python-setuptools')
optdepends=("python-numpy: used by array")
source=(https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz)
sha256sums=('890815aa01e4d855a6a95dd3ad0953b872a6b954982106407df0c5a31a163e50')

build() {
  cd "picamera-$pkgver"
  python setup.py build
}

package() {
  cd "picamera-$pkgver"
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}