summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99e97726b03459fa459aaa4d1a519eb20e4d929b (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
pkgname=stan-desktop
_pkgname=Stan-desktop
pkgrlname=stan
_pkgrlname=Stan
pkgver=1.0.6
pkgrel=1
pkgdesc="Unnofficial Stan desktop application"
arch=('x86_64')
url="https://gitlab.com/linuxbombay/stan-desktop"
license=('GPL')
depends=('libelectron' 'nss' 'gtk3' 'libxss' 'git')
makedepends=('unzip')
conflicts=("Stan-bin")
replace=("Stan-bin")
source=("$url/application/-/archive/$pkgver/application-$pkgver.tar.bz2")
sha256sums=('2a9265ab93d28fcd5ecaf1b98b34caa16052a208c5390d10e28dbcf0a0db2549')

package() {
    for dir in application-$pkgver ; do mv "${dir}" "$_pkgrlname" ;done
    cd "$srcdir/$_pkgrlname"
    chmod +x $pkgrlname.sh
    ln -sf "/opt/libelectron/node_modules" "$srcdir/$_pkgrlname"
    install -dm755 "$pkgdir/opt/$_pkgrlname"
    install -dm755 "$pkgdir/usr/share/pixmaps"    
    cp -r ./ "$pkgdir/opt/$_pkgrlname"
    cp -r "$pkgdir/opt/$_pkgrlname/$pkgrlname.svg" "$pkgdir/usr/share/pixmaps"  

    # Link to binary
    install -dm755 "$pkgdir/usr/bin"
    ln -s "/opt/$_pkgrlname/$pkgrlname.sh" "$pkgdir/usr/bin/$pkgrlname"

    # Desktop Entry
    install -Dm644 "$srcdir/$_pkgrlname/$_pkgrlname.desktop" \
        "$pkgdir/usr/share/applications/$_pkgrlname.desktop"
    sed -i s%/usr/share%/opt% "$pkgdir/usr/share/applications/$_pkgrlname.desktop"
}