aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 349da75836fe7cfc36f0abe4e8da6230b36afc07 (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
# Maintainer: Blair Bonnett <blair.bonnett@gmail.com>

pkgname=python-remi-git
pkgver=2022.7.27.r24.g4be71eb
pkgrel=1
pkgdesc="Cross-platform GUI library which renders in a web browser."
arch=('any')
url="https://github.com/dddomodossola/remi/"
license=("Apache")
depends=("python" "python-matplotlib" "python-pillow" "python-setuptools")
makedepends=("git")
options=(!emptydirs)
source=('git+https://github.com/dddomodossola/remi.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/remi"
  git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./'
  #version=`cat setup.py | grep version= | sed "s/\s\+version='//g" | sed "s/',//g"`
  #printf "%s.%s" "$version" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/remi"
	python setup.py install --root="$pkgdir/" --optimize=1
  cd "$pkgdir"
  rm -r usr/lib/python3.[0-9]*/site-packages/test/
  rm -r usr/lib/python3.[0-9]*/site-packages/editor/
  mkdir -p "usr/share/doc/python-remi-git"
  cp -r "$srcdir/remi/examples" "usr/share/doc/python-remi-git"
}

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