Re: makepkg is creating BOTH a /pkg and pkgusr on build??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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)


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux