summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a96f4943c65c8bac220179ea5c0949942adcecfe (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
# Maintainer: a821 <a821 (nospam) mail de>

pkgname=python-session-info
_name=session_info
pkgver=1.0.0
pkgrel=2
pkgdesc="Print version information for loaded modules in the current session, python, and OS"
url="https://gitlab.com/joelostblom/session_info"
arch=('any')
license=('BSD')
depends=('python-stdlib-list') # AUR
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
        "LICENSE")
sha256sums=('3cda5e03cca703f32ae2eadbd6bd80b6c21442cfb60e412c21cb8ad6d5cbb6b7'
            '2f1ea30058f176173ce97c994b87647e816019e0fc4f28d40968c31894ee876e')

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

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" ../LICENSE
    install -Dm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
}

# vim: set ts=4 sw=4 et: