As stated by pdxleif, this package fails to build, so kindly fix by deleting line 28 of PKGBUILD, which i've personally tested to work. Thanks in advance! :)
Search Criteria
Package Details: castnow-git 0.4.14.r79.g0e1746b-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/castnow-git.git (read-only, click to copy) |
---|---|
Package Base: | castnow-git |
Description: | Command-line utility used to play back media files on your Chromecast device |
Upstream URL: | https://github.com/xat/castnow |
Keywords: | Chromecast git node npm |
Licenses: | MIT |
Conflicts: | castnow |
Provides: | castnow |
Submitter: | archlinuxfr |
Maintainer: | fungible |
Last Packager: | fungible |
Votes: | 61 |
Popularity: | 0.001260 |
First Submitted: | 2015-08-26 18:38 (UTC) |
Last Updated: | 2021-12-27 06:13 (UTC) |
Dependencies (2)
- npm (corepackerAUR, python-nodejs-wheelAUR)
- git (git-gitAUR, git-glAUR) (make)
Required by (0)
Sources (1)
mhertz commented on 2018-06-08 01:45 (UTC)
pdxleif commented on 2018-05-29 05:46 (UTC)
Fails with "rmdir: failed to remove 'usr/etc': No such file or directory"
dbirks commented on 2017-10-21 00:40 (UTC)
Updated PKGBUILD, and it's now building nicely. Thanks @asem, @trulex, and @blumsicle for the fixes!
Skunnyk commented on 2017-09-29 11:18 (UTC)
Disowning, please adopt it to update it :)
paulodiovani commented on 2017-09-17 22:50 (UTC)
Another option is to install from a tarball:
package() {
cd $srcdir
tar czvf "../$pkgname-$pkgver.tar.gz" "$pkgname"
install -D -m644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
npm install --user root -g --prefix="$pkgdir/usr" "../$pkgname-$pkgver.tar.gz"
}
<deleted-account> commented on 2017-08-05 15:09 (UTC)
This fixes it for me
package() {
cd $pkgname
mkdir -p $pkgdir/usr
npm install --user root -g --prefix="$pkgdir/usr"
cd $pkgdir
rmdir usr/etc
cd usr/lib/node_modules/
rm castnow
mv ../../../../../src/castnow-git castnow
cd castnow
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
<deleted-account> commented on 2017-08-05 12:30 (UTC)
npm creates a relative symlink /usr/bin/castnow - > ../lib/node_modules/castnow/index.js which results in a broken symlink after the package is generated.
A manual fix is needed in the PKGBUILD
blumsicle commented on 2017-05-02 18:32 (UTC)
The PKGBUILD unintentionally adds an empty '/usr/etc' directory. Adding `rmdir "$pkgdir/usr/etc"` after the `npm install ...` fixes that.
Skunnyk commented on 2016-10-17 10:00 (UTC)
No need to flag it out of date, it's a -git version.
trulex commented on 2016-02-28 12:51 (UTC)
No longer conflicts castnow since there's no such package anymore
Pinned Comments
fungible commented on 2021-12-20 09:17 (UTC)
I've updated the PKGBUILD so it should build and install correctly but a lot of the packages/dependencies that NPM pulls in are full of warnings/vulnerabilities/deprecation so install this package at your own risk.
Upstream is not very active with their last commit being over 2 years ago.
Your best bet is to clone the repository and run
npm install
locally and then runnpm audit
to fix the dependencies yourself.