forked from Plemya-x/alr-repo
arrpc
This commit is contained in:
32
arrpc/lure.sh
Normal file
32
arrpc/lure.sh
Normal file
@ -0,0 +1,32 @@
|
||||
name='arrpc'
|
||||
version='3.3.1'
|
||||
release='1'
|
||||
desc='Open Discord RPC server for atypical setups'
|
||||
homepage='https://electronjs.org'
|
||||
maintainer="Евгений Храмов <xpamych@yandex.ru>"
|
||||
architectures=('amd64')
|
||||
license=('MIT')
|
||||
provides=('arrpc')
|
||||
conflicts=('arrpc-git')
|
||||
|
||||
deps=('glibc' 'gcc-libs')
|
||||
build_deps=('npm' 'git')
|
||||
|
||||
sources=("git+https://github.com/OpenAsar/arrpc.git")
|
||||
checksums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/arrpc/"
|
||||
patch ./src/index.js ../async.patch
|
||||
npm i esbuild pkg
|
||||
# use node 18 as pkg apparently doesn't support 19 yet
|
||||
npx esbuild --bundle --platform=node --target=node18 --outdir=dist ./src/index.js
|
||||
npx pkg -t node18-linux-x64 -o arrpc ./dist/index.js
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/arrpc"
|
||||
install-binary ./arrpc
|
||||
install-license ./LICENSE
|
||||
install-systemd-user ../arrpc.service
|
||||
}
|
Reference in New Issue
Block a user