summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2ef5e8c9b0dd4004c5f2235a715879660c57cc2b (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
# Maintainer: Aleksy Grabowski <hurufu+arch@gmail.com>

pkgname=python-asn1tools
pkgver=0.156.0
pkgrel=2
pkgdesc='A Python package for ASN.1 parsing, encoding and decoding'
arch=(any)
url='https://github.com/eerimoq/asn1tools.git'
license=('MIT')
depends=(
    python 
    licenses
    python-prompt_toolkit
    python-diskcache
)
makedepends=(python-pip)
checkdepends=(python-pytest python-trio)
source=(
    asn1tools-$pkgver.tar.gz::https://github.com/eerimoq/asn1tools/archive/$pkgver.tar.gz
    00-handle-odd-numbered-hex-strings.patch
)
md5sums=(
    a42fb735d3d290bd85e63ce5de58f449
    0b9993eb074af91618cb5898345953c6
)
sha1sums=(
    ab39f16eec574d229f58bd49dc079348e3df27c7
    c2e9135e8bfbd08a9f81a1ec05501ff35c116173
)

prepare() {
    patch -p1 -d asn1tools-$pkgver <../00-handle-odd-numbered-hex-strings.patch
}

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

package() {
    cd asn1tools-$pkgver
    python setup.py install -O1 --root="$pkgdir" --skip-build
}