If you have suggestions for changes, feel free to open a MR against the arrpc
branch of https://gitlab.archlinux.org/freso/arrpc
Search Criteria
Package Details: arrpc 3.5.0-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/arrpc.git (read-only, click to copy) |
---|---|
Package Base: | arrpc |
Description: | Open Discord RPC server for atypical setups |
Upstream URL: | https://arrpc.openasar.dev/ |
Keywords: | discord rpc |
Licenses: | MIT |
Submitter: | Freso |
Maintainer: | Freso (AutoUpdateBot) |
Last Packager: | Freso |
Votes: | 8 |
Popularity: | 0.75 |
First Submitted: | 2023-05-16 16:52 (UTC) |
Last Updated: | 2024-10-06 09:41 (UTC) |
Dependencies (2)
- nodejs (nodejs-lts-fermiumAUR, nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogen, nodejs-lts-iron)
- npm (corepackerAUR, python-nodejs-wheelAUR) (make)
Required by (1)
- equibop (optional)
Sources (2)
Freso commented on 2024-10-24 09:42 (UTC)
HurricanePootis commented on 2024-09-19 20:56 (UTC) (edited on 2024-09-19 20:58 (UTC) by HurricanePootis)
Here is my proposed changes:
diff --git a/PKGBUILD b/PKGBUILD
index 1455fa6..6da0c02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
# Contributor: Scarlett Veldt <scarlett AT enby DOT site>
pkgname=arrpc
pkgver=3.5.0
-pkgrel=1
+pkgrel=2
pkgdesc="Open Discord RPC server for atypical setups"
-arch=('x86_64' 'x86_64_v3')
+arch=('any')
url="https://arrpc.openasar.dev/"
license=('MIT')
-depends=("glibc" "gcc-libs")
+depends=("nodejs")
makedepends=("npm")
# for some reason stripping the binary breaks it
options=(!strip)
@@ -17,7 +17,13 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenAsar/arrpc/archive/refs
sha256sums=('85f3c52b035af322789c749ad3910aca350d057ce97c98965bbf922acc74c68b'
'dccc409ef768766d8d4141f8d89366e0bbecd30d9b08d4d31856b01f180c4005')
+build(){
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ node update_db.js
+}
+
package() {
+ cd "${srcdir}"
npm install --cache "${srcdir}/npm-cache" \
-g --prefix "${pkgdir}/usr" \
"${srcdir}/${pkgname}-${pkgver}.tar.gz"
- Change
arch()
toany
as there are no compiled binaries in this package. - Remove
glibc
andgcc-libs
fromdepends()
as there are no compiled binaries in this package. - Add
nodejs
to depends as this package requriesnodejs
to run. - Update the game database use nodejs in
build()
.
There is no need to do a npm pack
or npm install
in build()
as the arrpc-$pkgver.tar.gz
comes with all the node modules pre-vendored.
You can always use the tool namcap
to do an automated quality control check on your packages.
HurricanePootis commented on 2024-09-19 20:50 (UTC) (edited on 2024-09-19 20:51 (UTC) by HurricanePootis)
@xpander
npm install
and npm pack
are not needed. The archive comes with all the node modules needed in arrpc-3.5.0/node_modules
, which is just ws. npm pack
is not needed as we do not use the archive that is generated by it; we already have everything needed to be done by npm inside of package()
.
the node update_db.js is the only thing valid in your PKGBUILD
xpander commented on 2024-09-08 22:33 (UTC) (edited on 2024-09-08 22:36 (UTC) by xpander)
The PKGBUILD is still broken. its also missing build() section at the moment
managed to build it with modifications:
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
# Contributor: Scarlett Veldt <scarlett AT enby DOT site>
pkgname=arrpc
pkgver=3.5.0
pkgrel=1
pkgdesc="Open Discord RPC server for atypical setups"
arch=('x86_64' 'x86_64_v3')
url="https://arrpc.openasar.dev/"
license=('MIT')
depends=("glibc" "gcc-libs" "nodejs")
makedepends=("npm")
# for some reason stripping the binary breaks it
options=(!strip)
install=arrpc.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenAsar/arrpc/archive/refs/tags/${pkgver}.tar.gz"
"arrpc.service")
sha256sums=('85f3c52b035af322789c749ad3910aca350d057ce97c98965bbf922acc74c68b'
'dccc409ef768766d8d4141f8d89366e0bbecd30d9b08d4d31856b01f180c4005')
build() {
cd "${pkgname}-${pkgver}" || exit 1
node update_db.js
npm install
npm pack
}
package() {
npm install --cache "${srcdir}/npm-cache" \
-g --prefix "${pkgdir}/usr" \
"${srcdir}/${pkgname}-${pkgver}.tar.gz"
install -D -m644 "${pkgname}-${pkgver}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 arrpc.service "${pkgdir}/usr/lib/systemd/user/arrpc.service"
}
solarpunkjulian commented on 2024-09-08 17:39 (UTC)
as schneensch commented: https://aur.archlinux.org/packages/arrpc#comment-978415 please add nodejs as a dependency.
schneensch commented on 2024-06-17 10:40 (UTC)
Shouldn't nodejs be added as a dependency to the PKGBUILD, as arrpc doesn't run without it?
XenHat commented on 2024-06-07 14:45 (UTC) (edited on 2024-06-07 14:46 (UTC) by XenHat)
For anyone trying to make this work, here's a full PKGBUILD with BrianAllred's and k1f0's fixes. I had to use makepkg --sync --install --force
but I finally got it installed and running, systemd unit and all:
# Maintainer: Frederik “Freso” S. Olesen <archlinux@freso.dk>
# Contributor: Scarlett Veldt <scarlett AT enby DOT site>
pkgname=arrpc
pkgver=3.4.0
pkgrel=3
pkgdesc="Open Discord RPC server for atypical setups"
arch=('x86_64' 'x86_64_v3')
url="https://arrpc.openasar.dev/"
license=('MIT')
depends=("glibc" "gcc-libs" "nodejs")
makedepends=("npm")
# for some reason stripping the binary breaks it
options=(!strip)
install=arrpc.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/OpenAsar/arrpc/archive/refs/tags/${pkgver}.tar.gz"
"arrpc.service")
sha256sums=('8f1f2054e70221922f30920c3ef11cfdded1ddf7425f73c808c033bdc18a0911'
'dccc409ef768766d8d4141f8d89366e0bbecd30d9b08d4d31856b01f180c4005')
build() {
cd "${pkgname}-${pkgver}" || exit 1
node update_db.js
npm install
npm pack
}
package() {
cd "${pkgname}-${pkgver}" || exit 1
npm install --cache "${srcdir}/npm-cache" \
-g --prefix "${pkgdir}/usr" \
"${pkgname}-${pkgver}.tgz"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -D -m644 ../arrpc.service "${pkgdir}/usr/lib/systemd/user/arrpc.service"
}
BrianAllred commented on 2024-05-31 14:52 (UTC)
This needs nodejs
as a runtime dependency. I removed it because none of my packages explicitly depended on it, and arrpc broke as a result.
/usr/bin/env: ‘node’: No such file or directory
k1f0 commented on 2024-05-11 19:59 (UTC) (edited on 2024-05-11 20:00 (UTC) by k1f0)
Adjusted again, this should now do it, also uses the updater script to pull the newest detectable DB before installing.
+build() {
+ cd "${pkgname}-${pkgver}"
+ node update_db.js
+ npm install
+ npm pack
+}
+
package() {
+ cd "${pkgname}-${pkgver}"
npm install --cache "${srcdir}/npm-cache" \
-g --prefix "${pkgdir}/usr" \
- "${srcdir}/${pkgname}-${pkgver}.tar.gz"
+ "${pkgname}-${pkgver}.tgz"
- install -D -m644 "${pkgname}-${pkgver}"/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -D -m644 arrpc.service "${pkgdir}/usr/lib/systemd/user/arrpc.service"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -D -m644 ../arrpc.service "${pkgdir}/usr/lib/systemd/user/arrpc.service"
}
theblu3j commented on 2024-05-04 21:33 (UTC) (edited on 2024-05-11 00:52 (UTC) by theblu3j)
k1f0's solution works for me, you might have just made a typo? edit: It worked once, no longer. Cloning and running the GitHub source works.
Pinned Comments
Freso commented on 2024-10-24 09:42 (UTC)
If you have suggestions for changes, feel free to open a MR against the
arrpc
branch of https://gitlab.archlinux.org/freso/arrpc