summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9a7e7b370d79cf5541388f63862066826f8337c2 (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
# Maintainer: Marco Gulino <marco dot gulino at gmail dot com>
pkgname=python-xisf
_name=${pkgname#python-}
pkgver=0.9.5
pkgrel=2
pkgdesc="Python library for encoding and decoding Pixinsight XISF files"
arch=('any')
url="https://github.com/sergio-dr/xisf"
license=('GPL3')
depends=(
  'python'
  'python-lz4'
  'python-zstandard'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-setuptools-scm'
  'python-wheel'
)
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('343d0b3d1cca575808eaeefec19ffec53986b57f11757a9feb833dc4f79bd645')

build() {
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}