I think you should try to replace this strange tar-line with a copy:
mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin} cp -af lib "$pkgdir"/usr/share/pacmanager/ install -D -m 644 res/*png $pkgdir/usr/share/pacmanager/res
Thank you doing it that way worked.
Honestly I took the package over and had not really dug into the PKGBUILD until this issue. My fault I know. But I do thank you for pointing out the issues it currently has. I am going to go over the rest now to make sure it conforms properly.
Thanks.
]]>Then there's also the problem that you're using tar to begin with instead of installing files with utilities such as "install", "cp", etc.
]]> mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin}
cp -af lib "$pkgdir"/usr/share/pacmanager/
install -D -m 644 res/*png $pkgdir/usr/share/pacmanager/res
The error I am getting is:
==> Starting package()...
/home/user/abs/MyAUR/pacmanager/PKGBUILD: line 37: cd: ../../pkg/usr/share/pacmanager/: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...
the last line is line 37:
package() {
cd $srcdir/pac
mkdir -p $pkgdir/usr/{share/pacmanager/{lib,res,utils},bin}
/bin/tar cf - lib/* | ( cd ../../pkg/usr/share/pacmanager/; tar xfp - )
It is the tar cf - lib/* portion, it seems to make the directories. Is there a proper way to debug an issue like that that I am missing? Can anyone point out what the issue is with it?
Thanks for any help.
[1] https://aur.archlinux.org/packages/pa/pacmanager/
[2] https://aur.archlinux.org/packages/pa/p … r/PKGBUILD