[aur-general] My first PKGBUILD (ttf font)
cantabile
cantabile.desu at gmail.com
Sun May 15 17:19:50 EDT 2011
On 05/15/2011 04:24 PM, Ian Brunton wrote:
> On Sun, May 15, 2011 at 03:09:47PM +0200, Kwpolska wrote:
>> On Sun, May 15, 2011 at 09:54:36AM -0300, Ian Brunton wrote:
>>> This is my first attempt at creating a package. It's for a TTF font. I
>>> know it works, at least on my machine. I'd appreciate any feedback on
>>> whether I've put everything together correctly. Specifically, I'm unsure
>>> about how to handle the license; this font comes with a custom "freeware
>>> EULA" which is available on the original website and is included in the
>>> ZIP file; what would be the most correct way to specify the license in
>>> the PKGBUILD file?
>>>
>>> PKGBUILD and install file are attached.
>>>
>>> Thank you
>>> --
>>> Ian Brunton
>>> iandbrunton at gmail.com
>>> http://laygeek.wordpress.com
>> Apply Jesse Jarra's changes, change build() to package() and you'll
>> be fine.
>> --
>> Cheers,
>> -- Kwpolska (http://kwpolska.co.cc)
>> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
>
> Thanks. I used build() because that's what's in the wiki's page about
> creating font packages
> (https://wiki.archlinux.org/index.php/Fonts#Creating_a_package). I've
> changed it now.
Whether you use build() or package() isn't terribly important. build()
is for compiling and such and package() is for placing the files in the
right locations. Since you only do the latter, package() is the most
appropriate choice.
You should use "install" instead of mkdir and cp. With "install" you can
set the permissions, create all the necessary folders and copy the
files, all in one command (well, one for the fonts, one for the
license). It comes with a manual. :P
--
cantabile
"Jayne is a girl's name." -- River
More information about the aur-general
mailing list