You are not logged in.

#1 2012-03-24 15:26:56

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

[Solved] How to repack for "-U" option?

Hello guys!

I need to modify vlc package before installing it. So I downloaded TAR.XZ from repos.
Then unpacked it:

tar -xvf vlc...

Modified .PKGINFO to remove one dependency.
And packed it:

tar -cvf vlc-for-arch.tar *
xz vlc-for-arch.tar

And I got TAR.XZ package.

Now I can't install it because:
error: missing package metadata in /home/alex/downloads/vlc/vlc-for-arch.tar.xz
error: '/home/alex/downloads/vlc/vlc-for-arch.tar.xz': invalid or corrupted package

How do I pack this package for installation?

Or maybe there's an easier way to merely modify PKGINFO?

Last edited by Mr. Alex (2012-03-24 15:51:03)

Offline

#2 2012-03-24 15:34:59

magicalChicken
Member
From: in the sky
Registered: 2012-03-03
Posts: 73
Website

Re: [Solved] How to repack for "-U" option?

I would try using the abs to achieve this. I think that using something like abs extra/vlc then copying it to a builds folder, make changes, makepkg then install should be your best bet, read up on the abs on the wiki: https://wiki.archlinux.org/index.php/ABS

Offline

#3 2012-03-24 15:39:00

Allan
Developer
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,408
Website

Re: [Solved] How to repack for "-U" option?

"tar -cvf vlc-for-arch.tar *"  does not include .PKGINFO.

Offline

#4 2012-03-24 15:47:59

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] How to repack for "-U" option?

I would try using the abs to achieve this.

To me compiling from source is way more complicated. I prefer to repack it.

Last edited by Mr. Alex (2012-03-24 16:07:18)

Offline

#5 2012-03-24 15:49:49

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: [Solved] How to repack for "-U" option?

Allan wrote:

"tar -cvf vlc-for-arch.tar *"  does not include .PKGINFO.

Thanks. I didn't think about specifing hidden files.

tar -cvf vlc-for-arch usr .INSTALL .PKGINFO

Last edited by Mr. Alex (2012-03-24 16:07:43)

Offline

Board footer

Powered by FluxBB