[arch-general] makepkg is creating BOTH a /pkg and pkgusr on build??

Dennis Herbrich dennis at archlinux.org
Fri May 18 09:04:15 EDT 2012


On Fri, May 18, 2012 at 07:54:27AM -0500, David C. Rankin wrote:
> OK, I'll check again for the package manipulating pkgdir, because I'm using
> the standard package:
> 
> package() {
>   msg "Packaging ${pkgname}-${pkgver}"
> 
>   cd ${pkgname}-${pkgver}
> 
>   make DESTDIR=$pkgdir install
> }

Interestingly enough, my /usr/share/pacman/PKGBUILD.proto thinks otherwise:
  [...]
  package() {
    cd "$srcdir/$pkgname-$pkgver"
    make DESTDIR="$pkgdir/" install
  }
  [...]

And besides the unquoted DESTDIR leading to trouble, the additional slash would also explain and likely fix your issue.

I'd suggest using a matching .proto file whenever creating a new package
instead of copying an old PKGBUILD. They are updated every now and then, and
you should profit from this.

Best regards.
  Dennis

-- 
"Den Rechtsstaat macht aus, dass Unschuldige wieder frei kommen."
  Dr. Wolfgang Schäuble, Bundesinnenminister (14.10.08, TAZ-Interview)


More information about the arch-general mailing list