summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14219e7dc1fc00a10f9f346d21549de5c2589a3d (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: algebro <algebro at tuta dot io>

_pkgname=eth-typing
pkgname=python-$_pkgname
pkgver=2.2.1
pkgrel=1
pkgdesc="Python types for type hinting commonly used Ethereum types."
arch=('x86_64')
url="https://github.com/ethereum/eth-typing"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/ethereum/eth-typing/archive/v${pkgver}.tar.gz")
sha256sums=('6c20477dbd8d2ccc482e8baec00dad129f768bb5d5282f1d1466a90a0e49001d')

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

package() {
  cd "$srcdir/$_pkgname-$pkgver"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}