blob: 62b9906d56bb58dcd02ae95f4c3ff7df9e3a2ade (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Maintainer: Ben Wolsieffer <benwolsieffer@gmail.com>
_py_pkgname=pynmea2
_github_url=https://github.com/Knio/pynmea2
pkgname=python-${_py_pkgname}
pkgver=1.19.1
pkgrel=2
pkgdesc="Python library for parsing the NMEA 0183 protocol (GPS)"
arch=('any')
url="${_github_url}"
license=(MIT)
depends=()
makedepends=(git python-setuptools)
checkdepends=('python-pytest')
options=()
#source=(${_py_pkgname}::git+${_github_url}.git#tag=$pkgver)
source=(
${_py_pkgname}::git+${_github_url}.git#commit=5d3d2013bff9c5bce2e14132d21fff865b1e58fd
python312.patch
)
sha256sums=(
'SKIP'
'9041ded58cca5f817f9c8a91987c914a0df0be940618a3a0974a291cd76a0a2b'
)
build() {
cd "${srcdir}/${_py_pkgname}"
patch -p1 <"${srcdir}/python312.patch"
python setup.py build
}
check() {
cd "${srcdir}/${_py_pkgname}"
PYTHONPATH="$(pwd)" py.test
}
package() {
depends=('python')
optdepends=()
cd "${srcdir}/${_py_pkgname}"
python setup.py install --skip-build --root="${pkgdir}" --optimize=1
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
# vim:set ts=4 sw=4 et:
|