You are not logged in.

#1 2008-07-16 05:49:00

georgia_tech_swagger
Member
From: Upstate, SC
Registered: 2008-07-02
Posts: 138
Website

.install

Could somebody please create a wiki page explaining the use of the .install file ... how you have to name it ... and the USE of Arg1 and Arg2?  I'm trying to fix one of my AUR builds ... and create a new one ... so that they gives messages post-install instead of build time.

Thanks!


Res Publica Non Dominetur

Laptop:  Arch x86 | Thinkpad X220 | Core i5 2410-M | 8 GB DDR3 | Sandy Bridge
Desktop:  Arch x86_64 | Custom | Core i7 920 | 6 GB DDR3 | GeForce 260 GTX

Offline

#2 2008-07-16 06:11:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,413
Website

Re: .install

There is a prototype in /usr/share/pacman/proto.install.  The totem package (use abs to grab) has a good example of how to use it.

Offline

#3 2008-07-16 13:21:40

georgia_tech_swagger
Member
From: Upstate, SC
Registered: 2008-07-02
Posts: 138
Website

Re: .install

Yea, I used the /usr/share/pacman/proto.install as a template, it just seems makepkg is ignoring it.   I'm probably naming it wrong.

I've tried:

.INSTALL
pkgname.install
pkgname-version.install

I'll keep trying until I find what appeases it wink


Res Publica Non Dominetur

Laptop:  Arch x86 | Thinkpad X220 | Core i5 2410-M | 8 GB DDR3 | Sandy Bridge
Desktop:  Arch x86_64 | Custom | Core i7 920 | 6 GB DDR3 | GeForce 260 GTX

Offline

#4 2008-07-16 13:23:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,413
Website

Re: .install

You need to add "install=${pkgname}.install" or whatever you name it to your PKGBUILD.  Any name should work but I recommend sticking with the ${pkgname}.install format.

Offline

#5 2008-07-16 14:14:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: .install

georgia_tech_swagger wrote:

I'll keep trying until I find what appeases it wink

Trial and error will usually work (eventually), but nothing beats proper research IMO. In this case, man PKGBUILD provides a relevant description and example, and as Allan suggests, reviewing existing builds in a good way to expand on that.

Feel free to add some details to the wiki yourself - this page is probably the most suitable.

Offline

#6 2008-07-16 15:10:13

georgia_tech_swagger
Member
From: Upstate, SC
Registered: 2008-07-02
Posts: 138
Website

Re: .install

BINGO!   Thanks!   Yea, was looking on the wiki and it mentioned nothing about how to do that.   I'll change that in a few.


Res Publica Non Dominetur

Laptop:  Arch x86 | Thinkpad X220 | Core i5 2410-M | 8 GB DDR3 | Sandy Bridge
Desktop:  Arch x86_64 | Custom | Core i7 920 | 6 GB DDR3 | GeForce 260 GTX

Offline

Board footer

Powered by FluxBB