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

pkgname=pslab-desktop
pkgver=2.8.1
pkgrel=1
pkgdesc="PSLab Desktop App"
arch=('x86_64')
url="https://pslab.io"
license=('GPL3')
depends=('electron' 'python-pslab')
makedepends=('git' 'npm')
provides=("${pkgname}")
conflicts=("${pkgname}-latest")
install=
source=(
  "https://github.com/fossasia/${pkgname}/releases/download/v${pkgver}/pslab-${pkgver}.tar.xz"
)
sha256sums=('f8ed24e070a1bdbd01efbc7cb8027af793f840bbd83ac066bd591e26c606f7a6')

package() {
  cd "$srcdir"
  mkdir -p "$pkgdir/opt/"
  mkdir -p "$pkgdir/usr/bin/"
  cp -r pslab-$pkgver "$pkgdir/opt/pslab-desktop"
  ln -s /opt/pslab-desktop/pslab "$pkgdir/usr/bin/pslab-desktop"
  # TODO: desktop file
  #install -Dm 755 pslab.desktop "$pkgdir/usr/share/applications/pslab.desktop"
}