summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0cd96de86d549da316dabbcefa9c490b51394207 (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
pkgname=gaphor-git
_pkgname=gaphor
pkgver=0.28.7
pkgrel=1
pkgdesc='Gaphor is a UML and SysML modeling application written in Python'
arch=('any')
url=https://github.com/gaphor/gaphor
license=('Apache')
depends=('python-cairo' 'python-gaphas' 'python-generic' 'python-gobject' 'python-importlib-metadata' 'python-typing_extensions' 'python-tinycss2')
makedepends=('python-pip' 'python-poetry')
provides=('gaphor')
conflicts=('gaphor')
source=("git+https://github.com/gaphor/gaphor.git")
b2sums=('SKIP')

prepare() {
  cd ${_pkgname}
  # Avoid installing files directly under site-packages/
  sed -i '/include = \["README.md"\]/d' pyproject.toml
}

build() {
  cd ${_pkgname}
  poetry build --format wheel
}

package() {
  cd ${_pkgname}
  export PYTHONHASHSEED=0
  PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
  install -Dm644 -t "$pkgdir"/usr/share/licenses/${_pkgname} LICENSE.txt
}