summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 69635ce0019b8edb5fc49e6bb93c1e073abef508 (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
# Maintainer: Daniel Maslowski <info@orangecms.org>

pkgname=cypress
pkgver=0.17.10
pkgrel=1
pkgdesc='test engine that runs unit and integration tests in your browser'
arch=('x86_64')
url='http://www.cypress.io'
license=('MIT')
depends=('xorg-server-xvfb' 'lib32-gtk2' 'lib32-gconf>=2.4' 'lib32-nss' 'libnotify')
makedepends=('unzip')
optdepends=('nodejs-cypress-cli: for headless mode')
source=(
  "cypress.zip::https://download.cypress.io/desktop/$pkgver?os=linux64"
  'cypress.desktop'
)
sha512sums=('4281702f626caba2d70953e2cc3967526365bc125cd31cdcf1c8394a0d50aa16e37c7037f6ad528e6611a3134c4f82d8944b99868453f363a07f8b3257d2076b'
            '1b48157cf3ddd21ca58e2cd3df7998c01966a02a544fdfc7c5eedf5aee8757c541d5dc9df64fcdee65256a29141fa491c638bf9cd98b4e9df5030ec98ebc4251')

package() {
  mkdir "$pkgdir/opt"
  cp -a "$srcdir/Cypress" "$pkgdir/opt/Cypress"
  chmod 666 "$pkgdir/opt/Cypress/resources/app/node_modules/@cypress/core-extension/dist/background.js"
  install -Dm 644 cypress.desktop "$pkgdir/usr/share/applications/cypress.desktop"
  install -Dm 644 "$srcdir/Cypress/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm 644 "$srcdir/Cypress/LICENSES.chromium.html" "$pkgdir/usr/share/licenses/$pkgname/LICENSES.chromium.html"
}