You are not logged in.

#1 2010-03-02 06:02:24

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

How do you make a package?

Hello

I'm trying to make a package to install with pacman for some fonts i downloaded. I looked at the Arch Wiki page called "Fonts" but i'm not sure exactly what to do still.

So i have a folder in home folder containing some TTF files. I know that I can simply put the files in the usr/share/fonts/TTF folder and they will work, but I really want to figure out how to make a package to install with pacman so that the font is logged into the pacman log so I have a list of everything that is installed.

Thanks for the help!


joe@trusktr.io - joe at true skater dot io.

Offline

#2 2010-03-02 06:08:41

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

Offline

#3 2010-03-02 06:09:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you make a package?

I know nothing about creating a PKGBUILD, but if I were in your shoes, I would look at the numerous PKGBUILDs in AUR for other fonts, and start there - the ones I looked at seemed pretty straightforward...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2010-03-02 06:10:03

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: How do you make a package?

http://wiki.archlinux.org/index.php/Creating_Packages

Read through that and look at the related pages too, then take a look at a PKGBUILD for an existing font package. The one for ttf-dejavu is simple.

*edit*
Also note the use of the install file for ttf-dejavu.

Last edited by Xyne (2010-03-02 06:11:08)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2010-03-02 07:32:26

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: How do you make a package?

I put *a lot* of efforts in that, I hope you'll appreciate it.
tM3Braw

Offline

#6 2010-03-02 07:33:56

esters
Member
Registered: 2006-11-04
Posts: 173

Re: How do you make a package?

How do I shot web ?

Offline

#7 2010-03-04 18:36:38

trusktr
Banned
From: .earth
Registered: 2010-02-18
Posts: 907
Website

Re: How do you make a package?

Awesome, thanks for the tips! I'm reading the article. The only problem is it's a matter of time! No more two click installs like in windows$. hehe

One thing i noticed is that the PKGBUILD file will follow similar steps to:

./configure
make
make install

I did not know this! Yesterday, for the first time ever, I used those exact steps to install a plugin for GIMP. Since I did it manually, pacman doesn't have this addition to my system catalogued. EDIT: Actually, I just found the package in the AUR!

How do I undo/uninstall the "configure-make-make-install" steps that I did so that I can install the package from the AUR instead?

Last edited by trusktr (2010-03-04 18:40:41)


joe@trusktr.io - joe at true skater dot io.

Offline

#8 2010-03-04 18:52:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: How do you make a package?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2010-03-04 19:01:17

FrozenFox
Member
From: College Station, TX
Registered: 2008-03-23
Posts: 422
Website

Re: How do you make a package?

trusktr wrote:

Awesome, thanks for the tips! I'm reading the article. The only problem is it's a matter of time! No more two click installs like in windows$. hehe

You're comparing compiling *and* installing a program to just installing. The process on windows would be more involved if you needed to compile. If said program were in arch's repositories or AUR, 1 command could do the same as the "2 click install". On that note, really, it's seldom that few clicks on windows; you have 15 "next" and "default directory" and "finish" and "accept" and "holy crap, yes, just do it!" screens to go through, along with whatever elevated permission boxes you might need to give permission to tongue.

trusktr wrote:

Yesterday, for the first time ever, I used those exact steps to install a plugin for GIMP. Since I did it manually, pacman doesn't have this addition to my system catalogued. EDIT: Actually, I just found the package in the AUR!

How do I undo/uninstall the "configure-make-make-install" steps that I did so that I can install the package from the AUR instead?

Some programs have "make uninstall". Otherwise, an easy way to do it.. is if the pkgbuild builds the program the same way you did, simply force the package to install, thus overwriting the very same files you would have compiled without makepkg/pacman. After you build it from AUR, just check the files it's overwriting by trying to install it with pacman and seeing what file conflicts it nags about. If they're not important, force pacman to overwrite them. You can find how to do this stuff in pacman's manual (man pacman) and the wiki post Alan refers to.

Last edited by FrozenFox (2010-03-04 19:23:22)

Offline

#10 2010-03-04 21:02:29

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: How do you make a package?

bangkok_manouel wrote:

I put *a lot* of efforts in that, I hope you'll appreciate it.
http://omploader.org/tM3Braw

rofl... lol...

ah.. uhhh

what a minute, that's evil.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

Board footer

Powered by FluxBB