[aur-general] Request for assistance with a PKGBUILD

Joel Heaton jheaton at archlinux.us
Wed May 11 18:16:00 EDT 2011


On 11 May 2011 22:51, Dave Reisner <d at falconindy.com> wrote:
> On Thu, May 12, 2011 at 12:38:59AM +0300, jesse jaara wrote:
>> Make install will try to imstall to system sbd not into a packagefile. Make
>> DESTDIR=$pkgdir install will instead tell make to install imto pkg dir
>> instesd so we can make a tarball wit the lib in it, woch we can install
>
> DESTDIR is only useful if the Makefile honors it, which this one does
> not. Upstream here has also decided to put a _compile_ rule in an
> _install_ target which is simply insane.
>
> Honestly, the easiest route here is to munge the Makefile and/or provide
> your own. You should also complain to upstream that their Makefile is
> _not_ package friendly.
>
> regards,
> dave
>

Thanks for that, Dave. I will ask about that at the next opportunity.
Glad to know I was at least looking in the right direction, even if I
don't really understand the matter entirely. Definitely feel I've
learned something there, though. :-)

On 11 May 2011 22:58, Calimero <calimeroteknik at free.fr> wrote:
> It looks like the Makefile wasn't intended for packaging.
> But it's still possible to do things properly without changing it:
>
> package() {
>  cd "$srcdir/$pkgname"
>  mkdir -p "$pkgdir/usr/lib"
>  make PREFIX="$pkgdir/usr" BIN_DIR="$srcdir" install
> }
>
> Yet this is quite tricky, so I recommend to the author some changes to
> his Makefile.
>
> -- Calimero
>

Thank you Calimero. That may be the way I have to go for the moment,
at least to get the PKGBUILD working and I will raise the issue
regarding the Makefile to see if an adjustment might be made.

Thank you all for the responses regarding this matter, I really
appreciate it. Hopefully it will help me understand issues like this
better in the future.

Kind regards,

Joel.


More information about the aur-general mailing list