You are not logged in.
In my PKGBUILD I am trying to collect a few pixmaps and dump them inside the /usr/share/pixmaps directory. I am failing miserably when trying to do it in some sort of elegant way.
build() {
# Snip!
find $srcdir -type f -name \*.png -exec install -D -m644 {} $pkgdir/usr/share/pixmaps/$(basename {}) \;
# Snip!
}
Even though I use $(basename {}) in my find command, the result I get is that files are installed to /usr/share/pixmaps/home/hakan/devel/aur/blah/src/blah/images/.... This is obviously not what I want.
I have inserted debug statements and the basename seems to be completely ignored. However, when I run the same command manually (not inside the PKGBUILD) to verify I'm not totally insane, it works as expected.
Any pointers?
Offline
It is not half as elegant as I like, but now I simply use a couple of for loops to do the same thing and it works as expected.
I would very much appreciate if somebody could tell me what's wrong with what I posted above, though.
Offline
Unless you have pixmap files with whitespace in name you could try this:
find $srcdir -type f -name \*.png -exec sh -c 'install -D -m644 {} $pkgdir/usr/share/pixmaps/$(basename {})' \;
Offline