pkgname=portpeek
pkgver=1.3.0
pkgrel=1
pkgdesc="Port, process, TLS, and network inspector for developers"
arch=('any')
url="https://github.com/arien-dev/portpeek"
license=('GPL-2.0-only')
depends=('python>=3.10')
makedepends=('python-build' 'python-hatchling' 'python-installer')
source=("portpeek::git+https://github.com/arien-dev/portpeek.git#commit=9868589b649796baa1fc4192e599b79c487fe81f")
sha256sums=('SKIP')

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

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