summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 44e88d34147a422cd0a4315945bc778bc900bbb4 (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
# Maintainer: Razer <razer[AT]neuf[DOT]fr>

pkgname=python-adafruit-ssd1306
_pypi_pkgname=adafruit-ssd1306
pkgver=1.6.2
pkgrel=0
pkgdesc="Python library to use SSD1306-based 128x64 or 128x32 pixel OLED displays with a Raspberry Pi or Beaglebone Black"
arch=(any)
url="https://github.com/adafruit/Adafruit_Python_SSD1306/"
license=('BSD')
makedepends=('python-setuptools')
depends=('python' 'python-raspberry-gpio')
source=("https://pypi.io/packages/source/a/${_pypi_pkgname}/Adafruit_SSD1306-${pkgver}.tar.gz")
sha256sums=('4768518204037db82eb6b90838938f8519ecd29fe3d6cc3efa0d1100ed527727')

build() {
    cd "${srcdir}/Adafruit_SSD1306-${pkgver}"
    python setup.py build || return 1
}

package() {
    cd "${srcdir}/Adafruit_SSD1306-${pkgver}"
    python setup.py install --root=${pkgdir} --optimize=1 || return 1
}