diff options
author | abs3nt | 2023-07-25 15:18:00 -0700 |
---|---|---|
committer | abs3nt | 2023-07-25 15:18:00 -0700 |
commit | 20d54b682f013ac4c641767e27371ce1a4dec711 (patch) | |
tree | 69b946438d102833cdb1492f47e74d4735444c19 | |
download | aur-frame-eth-canary-git.tar.gz |
initial
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | .gitignore | 9 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | frame-eth-canary.desktop | 7 | ||||
-rw-r--r-- | frame-eth-canary.install | 7 |
5 files changed, 105 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2ac65a08cce6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = frame-eth-canary-git + pkgdesc = System-wide Web3 + pkgver = 0.6.7.canary.1.r0.g92b0c47e + pkgrel = 1 + url = https://frame.sh + install = frame-eth-canary.install + arch = x86_64 + arch = aarch64 + license = GPL3 + makedepends = npm + makedepends = nvm + makedepends = libusb + makedepends = python3 + makedepends = git + makedepends = node-gyp + depends = gtk3 + depends = nss + depends = libxss + provides = frame + conflicts = frame-eth-dev + conflicts = frame-eth + source = git+https://github.com/frame-labs/frame-canary.git + source = frame-eth-canary.desktop + sha256sums = SKIP + sha256sums = SKIP + +pkgname = frame-eth-canary-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..fc6b592456f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +#Ignore everything +* + +#But not these files... +!.gitignore +!PKGBUILD +!.SRCINFO +!frame-eth-canary.desktop +!frame-eth-canary.install diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..75773d78e7a3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +pkgname=frame-eth-canary-git +_pkgname=frame-eth-canary +pkgver=0.6.7.canary.1.r0.g92b0c47e +pkgrel=1 +pkgdesc="System-wide Web3" +arch=('x86_64' 'aarch64') +url='https://frame.sh' +license=('GPL3') +depends=('gtk3' 'nss' 'libxss') +_node_ver=18 +makedepends=('npm' 'nvm' 'libusb' 'python3' 'git' 'node-gyp') +provides=('frame') +conflicts=('frame-eth-dev' 'frame-eth') +install=$_pkgname.install +source=("git+https://github.com/frame-labs/frame-canary.git" + "$_pkgname.desktop") +sha256sums=('SKIP' 'SKIP') + +pkgver() { + cd frame-canary + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +_ensure_local_nvm() { + which nvm >/dev/null 2>&1 && nvm deactivate && nvm unload + export NVM_DIR="${srcdir}/.nvm" + + # The init script returns 3 if version specified + # in ./.nvrc is not installed in $NVM_DIR + # but nvm itself still gets loaded ok + source /usr/share/nvm/init-nvm.sh || [[ $? != 1 ]] +} + +prepare() { + _ensure_local_nvm + nvm install "$_node_ver" +} + +build() { + _ensure_local_nvm + cd frame-canary + npm run setup + npm install --cache "${srcdir}/npm-cache" + # npm run bundle + npm run build -- --linux dir +} + +package() { + cd frame-canary + install -d "$pkgdir/opt/$_pkgname" + cp -r --preserve=mode dist/linux-unpacked/* "$pkgdir/opt/$_pkgname/" + install -Dm644 "../$_pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" + install -Dm644 "asset/png/FrameAppIcon.png" "$pkgdir/usr/share/pixmaps/frame.png" + printf "#!/bin/sh\n\n/opt/$_pkgname/frame-canary \"\$@\"\n" | install -Dm755 /dev/stdin "$pkgdir/usr/bin/frame" +} diff --git a/frame-eth-canary.desktop b/frame-eth-canary.desktop new file mode 100644 index 000000000000..c64dd3c80a97 --- /dev/null +++ b/frame-eth-canary.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Name=Frame +Comment=System-wide Web3 for macOS, Windows and Linux +Exec=/usr/bin/frame %U +Terminal=false +Type=Application +Icon=frame diff --git a/frame-eth-canary.install b/frame-eth-canary.install new file mode 100644 index 000000000000..7968526976f3 --- /dev/null +++ b/frame-eth-canary.install @@ -0,0 +1,7 @@ +post_remove() { + cat << EOF + +==> To remove Frame settings and cache, delete ~/.config/frame + +EOF +} |