[aur-general] My first PKGBUILD (ttf font)
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@gmail.com http://laygeek.wordpress.com
2011/5/15 Ian Brunton <iandbrunton@gmail.com>
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@gmail.com/home/cave-johnson/aur <iandbrunton@gmail.com> http://laygeek.wordpress.com
Set license as 'custom' and then copy the license file to /usr/share/licenses/ttf-digital-readout/ dir. Also yo should add "" around every statement that has pkgdir or srcdir in it. This is due to that if user build build this package on a dir, wich name contains a space example cp command can become like cp /home/cave-johnson/aur builds/../*ttf /home.../aur builds/pkg... as you see this would copy file /home/cave-johnson/aur builds/../*ttf and /home/cave-johnson/aur (2nd time XD) to folder builds/pkg... and that not we want. so add "" so that the space charter is treated as part of the filename and not as separator for arguments. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
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@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
2011/5/15 Kwpolska <kwpolska@gmail.com>
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@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
Oh does is work now if you only have package and no build? It used to not, at least not for me. -- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
On Sun, May 15, 2011 at 04:11:48PM +0300, jesse jaara wrote:
2011/5/15 Kwpolska <kwpolska@gmail.com>
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@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
Oh does is work now if you only have package and no build? It used to not, at least not for me.
-- (\_ /) copy the bunny to your profile (0.o ) to help him achieve world domination. (> <) come join the dark side. /_|_\ (we have cookies.)
It works. I've used it in faenza-cupertino-icon-theme. It bulit. -- Cheers, -- Kwpolska (http://kwpolska.co.cc) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
On Sun, May 15, 2011 at 04:11:48PM +0300, jesse jaara wrote:
2011/5/15 Kwpolska <kwpolska@gmail.com>
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@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
Oh does is work now if you only have package and no build? It used to not, at least not for me.
Yes [1]. [1] http://projects.archlinux.org/aur.git/commit/?id=f08fbbe8
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@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. -- Ian Brunton iandbrunton@gmail.com http://laygeek.wordpress.com
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@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
participants (5)
-
cantabile
-
Ian Brunton
-
jesse jaara
-
Kwpolska
-
Lukas Fleischer