summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3e07dc0607eac95381635708d38dc608650c18c (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
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: Endo Aya <endoaya@protonmail.ch>

pkgname=dogehouse
pkgver=1.0.64
pkgrel=1
pkgdesc="Dogehouse - a fun spin on Clubhouse"
url="https://dogehouse.tv"
license=('MIT')
arch=('x86_64')
makedepends=(
    'git'
    'yarn'
    'nodejs'
    'rustup'
)
depends=(
    'gtk3'
    'nss'
    'libnotify'
    'libappindicator-gtk3'
)
source=("${pkgname}.tar.gz::https://github.com/benawad/dogehouse/archive/refs/tags/v${pkgver}.tar.gz")
conflicts=("${pkgname}" "${pkgname}-bin" "${pkgname}-git")

build() {
    rustup update stable
    cd "${srcdir}/dogehouse-${pkgver}/baklava"
    yarn install
    cargo install nj-cli
    yarn compile
    yarn build:globkey
    rm -rf ./node_modules/globkey/src
    rm -rf ./node_modules/globkey/target
    ./node_modules/.bin/electron-builder --linux --x64 --dir
}

package() {
    cd "${srcdir}/dogehouse-${pkgver}/baklava/builds/linux-unpacked"
    install -d -m755 ${pkgdir}/usr/bin
    install -d -m755 ${pkgdir}/usr/share/{${pkgname},applications,pixmaps}
    cp -r . ${pkgdir}/usr/share/${pkgname}
    ln -s /usr/share/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
    install -D -m644 ${srcdir}/../dogehouse.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
    install -D -m644 ${srcdir}/dogehouse-${pkgver}/baklava/icons/icon.png \
          ${pkgdir}/usr/share/pixmaps/dogehouse.png
}

md5sums=('SKIP')