summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2f7d1cfb3ae498aa7dbd6ec368463ecf43215d7b (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
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=onyx-git
pkgver=0.4.2+37+g84feff8
pkgrel=1
pkgdesc='Decentralized messaging application based on PSS (git)'
arch=(any)
url='https://mainframe.com'
license=(MIT)
depends=(yarn)
makedepends=(libicns)
conflicts=(onyx onyx-bin)
options=(!strip)
source=(git+https://github.com/MainframeHQ/onyx.git)
sha512sums=(SKIP)

pkgver() {
  cd $srcdir/onyx
  git describe --tags | sed 's/v//;s/-/+/g'
}

build() {
  cd $srcdir/onyx
  yarn
  yarn build:binaries
  yarn dist
}

package() {
  cd $srcdir/onyx
  install -Dm 755 dist/Mainframe\ Alpha.AppImage $pkgdir/usr/bin/onyx
  install -Dm 644 LICENSE $pkgdir/usr/share/licenses/onyx/LICENSE
}