summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cd9c1416af797ecccdd8889f68a613d5eb37a9c5 (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
# Maintainer: Malte Jürgens <maltejur@dismail.de>
# Contributor: hawkeye116477 <hawkeye116477 at gmail dot com>

pkgname=mozregression-gui
pkgver=6.3.0
pkgrel=1
pkgdesc='Regression range finder for Firefox'
arch=('any')
license=(MPL)
url="https://github.com/mozilla/mozregression"
conflicts=("mozregression-gui-bin")
depends=('libxcb' 'libxkbcommon-x11' 'libglvnd' 'gtk3' 'python' 'tk')
makedepends=('python-pip' 'python-virtualenv' 'git')
options=('!strip')
source=("git+https://github.com/mozilla/mozregression.git#tag=$pkgver"
        "mozregression-gui.desktop")
sha256sums=('SKIP'
            '0b51e2692ef75addd98365185ff05524426ca1735f43d6b1cafa0e71d71481cb')

build() {
  cd mozregression || exit
  python -m venv env
  source env/bin/activate
  PIP_CONFIG_FILE=/dev/null pip install --isolated --ignore-installed --no-deps -r requirements/requirements-3.11-Linux.txt
  PIP_CONFIG_FILE=/dev/null pip install --isolated -e .
  python gui/build.py bundle
}

package() {
  cd mozregression || exit
  install -d "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt/mozregression-gui}
  cp -r ./gui/dist/* "${pkgdir}"/opt/
  ln -s "/opt/${pkgname}/${pkgname}" \
        "$pkgdir/usr/bin/${pkgname}"
  install -m644 "${srcdir}"/mozregression-gui.desktop "${pkgdir}"/usr/share/applications/
  install -m644 ./gui/icons/app_icon.png "${pkgdir}"/usr/share/pixmaps/mozregression-gui.png
}