doesn't install correctly, changing the pkgbuild to what k1f0 suggested below spits out a 0kb package that doesn't work.
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: | 10 |
Popularity: | 0.84 |
First Submitted: | 2023-05-16 16:52 (UTC) |
Last Updated: | 2024-10-06 09:41 (UTC) |
Dependencies (2)
- nodejs (nodejs-gitAUR, python-nodejs-wheelAUR, nodejs6-binAUR, nodejs-lts-hydrogen, nodejs-lts-iron, nodejs-lts-jod)
- npm (corepackerAUR, python-nodejs-wheelAUR, nodejs6-binAUR) (make)
Required by (1)
- equibop (optional)
Sources (2)
Latest Comments
« First ‹ Previous 1 2
echolessowl commented on 2024-05-04 19:16 (UTC)
k1f0 commented on 2024-04-29 01:04 (UTC) (edited on 2024-04-29 01:06 (UTC) by k1f0)
This currently doesn't build due to upstream not being a packed npm package yet. We need to manually do that. Below works fine for me.
+build() {
+ cd "${pkgname}-${pkgver}"
+ rm -rf .github/
+ npm install
+ npm pack
+}
+
package() {
+ cd "${pkgname}-${pkgver}"
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"
+ "${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"
}
Yamashiro commented on 2024-04-28 21:26 (UTC)
I'm not sure what pm2 does or is needed? Either way I see that it's available in the official repos as well. But even just running npm install
inside the cloned repository and then node src
will start arrpc without it immediatelly failing.
So I guess this package needs to be updated to the current commit and remove the patches. Should the package be marked as out-of-date then?
tickbase commented on 2024-04-26 11:03 (UTC)
Cloning the github project and running it from there seems to work just fine but the aur package as of now is fully broken. For now here is a solution to run arrpc on your pc and on startup.
Step 1: Install pm2 and start arRPC
cd arrpc
npm install pm2
./node_modules/.bin/pm2 start src
Step 2: Create a systemd service file
sudo nano /etc/systemd/system/arrpc.service
[Unit]
Description=arRPC Service
After=network.target
[Service]
ExecStart=/usr/bin/node /path/to/arrpc/src
Restart=always
User=<your-user-name>
Group=<your-group-name>
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
WorkingDirectory=/path/to/arrpc
[Install]
WantedBy=multi-user.target
Then run the following commands:
sudo systemctl daemon-reload
sudo systemctl enable arrpc
sudo systemctl start arrpc
sudo systemctl status arrpc
If you encounter an error, run pm2 logs --no-daemon
and check the log for errors. If you see ER_UNSUPPORTED_DIR_IMPORT
, edit package.json
and add "type": "commonjs"
under "main": "src/index.js"
.
kristian_ss commented on 2024-01-08 03:46 (UTC)
Thanks for the package!
I noticed the post install instruction "systemd enable --user --now arrpc.service" should be systemctl instead.
Thanks again!
Freso commented on 2023-11-22 15:22 (UTC)
@micwoj92 Theoretically yes, but upstream doesn’t seem to keep the releases up to date there: https://www.npmjs.com/package/arrpc?activeTab=versions (no 3.2.0, and some older versions are also missing)
micwoj92 commented on 2023-11-01 21:53 (UTC)
Is it possible to change to download from npmjs? that way git makedep could be dropped.
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