summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 94ba71e03d881a18add2bdc784429741421012f5 (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
36
37
38
# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>

pkgname=python-xmind
_name=${pkgname#python-}
pkgver=1.2.0
pkgrel=2
pkgdesc="A one-stop solution for creating, parsing, and updating XMind files"
arch=(any)
url="https://github.com/zhuifengshen/xmind"
license=(MIT)
depends=(
  python
)
makedepends=(
  python-build
  python-installer
  python-setuptools
  python-wheel
)

source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('7524b447aa038e30c1b37b1a161494eb8af79b48629658493b4e0407dc50cc79')

_archive="$_name-$pkgver"

build() {
  cd "$_archive"

  python -m build --wheel --no-isolation
}

package() {
  cd "$_archive"

  python -m installer --destdir="$pkgdir" dist/*.whl

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