summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 98aaa69cea720903f83604935fd5e7592cce2ddd (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: Josh Ellithorpe <quest at mac dot com>

pkgname=lokinet-gui
pkgver=1.0.0
pkgrel=0
pkgdesc="Graphical user interface for lokinet"
arch=('i686' 'x86_64')
url="https://github.com/oxen-io/lokinet-gui"
options=(!strip)
makedepends=('nodejs' 'libxcrypt-compat')
depends=('lokinet')
provides=("lokinet-gui")
source=("https://github.com/oxen-io/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz" "git-config")
sha256sums=('e0919464e64540a3f573ace4dfaa93d00a5d13daa754d6c054befcb882f855a0'
            'c42bf520ceb87783604e50fd6a3145eea34e8d6ff244bfbb77540cac2415f447')

build() {
  cd "$pkgname-$pkgver"

	# Build requires a working .git config.
	cp ../git-config .git/config

	# Build the AppImage
	yarn install --frozen-lockfile
	yarn appImage
}

package() {
	cd "$pkgname-$pkgver"

	install -Dm 775 "release/Lokinet-GUI-${pkgver}.AppImage" "${pkgdir}/usr/bin/Lokinet-GUI.AppImage"
	install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}