diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7d768b74919f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-bitstruct + pkgdesc = This module performs conversions between Python values and C bit field structs represented as Python byte strings + pkgver = 8.8.1 + pkgrel = 1 + url = https://github.com/eerimoq/bitstruct + arch = any + license = custom + makedepends = python-setuptools + depends = python + source = https://files.pythonhosted.org/packages/51/fc/0f4a732f32ee60449832d024dd2f5f3ecd77e4791fb732b2086adf24f8a6/bitstruct-8.8.1.tar.gz + md5sums = 274b53fffe7e1adfdcecf1c4b688a984 + +pkgname = python-bitstruct + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a6a935f36b56 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Peter Züger <zueger.peter@icloud.com> + +pkgname=python-bitstruct +_pkgname=bitstruct +pkgver=8.8.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/51/fc/0f4a732f32ee60449832d024dd2f5f3ecd77e4791fb732b2086adf24f8a6/${_pkgname}-${pkgver}.tar.gz) +md5sums=('274b53fffe7e1adfdcecf1c4b688a984') + +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" +} |