summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fae7f5a21893bd66a03f9dd67f35b99868c277c (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
# Maintainer: tom barrett <tom at tombarrett dot xyz>
# https://aur.archlinux.org/packages/port-bin/

pkgname=port
pkgver=1.10.0
pkgrel=1
pkgdesc="A ship runner and manager for Urbit OS"
arch=("x86_64")
url="https://github.com/urbit/port"
license=("MIT" "custom:chromium")
depends=("urbit" "yarn" "zip" "npm")
conflicts=("port-bin")
source=("git+https://github.com/urbit/port.git#tag=v${pkgver}")
sha512sums=("SKIP")

package() {
	pushd "$srcdir"/port
	yarn
	#npx electron-rebuild@latest
	npx electron-rebuild
	yarn make --targets=@electron-forge/maker-zip
	popd
	install -d -m755 "$pkgdir"/usr/bin
	install -d -m755 "$pkgdir"/usr/share/port
	cp -r "$srcdir"/port/out/port-linux-x64/* "$pkgdir"/usr/share/port
	ln -s /usr/share/port/port "$pkgdir"/usr/bin/port
}