summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9775309d31816ca2f801274b6fbe101724b66f9e (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
# Maintainer: <https://aur.archlinux.org/account/zeauw>

_name=gwosc
pkgname=python-${_name}
pkgver=0.7.1
pkgrel=1
pkgdesc="A python interface to the Gravitational-Wave Open Data Center archive"
arch=('any')
url='https://git.ligo.org/gwosc/client'
license=('MIT')
depends=('python')
makedepends=('python-setuptools' 'python-wheel' 'python-build' 'python-installer' 'python-setuptools-scm')
source=("client-v${pkgver}.tar.gz::${url}/-/archive/v${pkgver}/client-v${pkgver}.tar.gz")
sha256sums=('d03b87c222c4f5235fb8a04d5b3841d60893b3fa400126b1b7ce0cb1e911f8c3')

build() {
    export SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver}
    cd client-v${pkgver}
    python -m build --wheel --no-isolation
}

package() {
    cd client-v${pkgver}
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}