summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8cb6b6c8513344b6501696c4bc26015e7bec29c6 (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
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>

pkgname=python-electrum_aionostr
_pkgname=electrum-aionostr
pkgver=0.0.9
pkgrel=2
pkgdesc="asyncio nostr client. This is a fork of aionostr that does not require Coincurve."
arch=('any')
depends=(python python-electrum_ecc python-aiohttp python-aiorpcx python-cryptography python-aiohttp-socks python-click)
makedepends=(python-setuptools python-build python-installer python-wheel)
url="https://github.com/spesmilo/electrum-aionostr"
license=('BSD')
options=('!emptydirs')
source=("git+https://github.com/spesmilo/electrum-aionostr.git")
sha256sums=('SKIP')

prepare() {
  cd "$srcdir/$_pkgname"
  _tag=$(git tag --list --sort=taggerdate | tail -n1 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
  printf $_tag;
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^.\{5\}//'
}

build() {
  cd "$srcdir/$_pkgname"
  python -m build --wheel --no-isolation
}

package() {
  cd "$srcdir/$_pkgname"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}