summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d16e1e8f923708561b1c42d7ee78ec232393edd5 (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
# Maintainer: Peter Züger <zueger.peter@icloud.com>

pkgname=python-bitstruct
_pkgname=bitstruct
pkgver=8.16.1
pkgrel=1
pkgdesc="This module performs conversions between Python values and C bit field structs represented as Python byte strings"
arch=('any')
url="https://github.com/eerimoq/bitstruct"
license=('custom')
makedepends=('python-setuptools')
depends=('python')
source=("https://files.pythonhosted.org/packages/f3/ef/6d216368240699a7b4d053efe998c95134676bdf37166aa590ecb790e3f4/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('f788bd56ce54abfdef7e459a81f0451b554c89e5c417c4a237600f5d7021e9ca')

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

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  python setup.py install --root="${pkgdir}"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}