racket

General talk about packaging procedures and packages.
User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

racket

Post by mimosa » 19. Sep 2012, 17:21

This is nearly finished in the sense that the build works. However one thing I'm stuck with is the menu icon.

I can see from the instructions where to put it, but I'm not sure where to get it from. Should I make one myself? What size should it be?

http://people.salixos.org/mimosa/packag ... 3/SLKBUILD
Last edited by mimosa on 28. Sep 2012, 10:46, edited 1 time in total.

User avatar
laprjns
Salix Warrior
Posts: 1039
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: [WIP]racket

Post by laprjns » 19. Sep 2012, 23:42

mimosa wrote:but I'm not sure where to get it from.
/racket-5.3/collects/icons/. I think the plt-32x32.png and plt-48x48.png are the only ones you need to install.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

Re: [WIP]racket

Post by mimosa » 19. Sep 2012, 23:48

That's very kind of you, laprjns :) - I'll have a look at those in the morning.

Needless to say, I searched the source, but to me it looked like a haystack.

User avatar
laprjns
Salix Warrior
Posts: 1039
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: [WIP]racket

Post by laprjns » 20. Sep 2012, 09:58

mimosa wrote:That's very kind of you, laprjns :) but to me it looked like a haystack.
yeah, so I cheated and look at the arch PKGBUILD ;)
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

Re: [WIP]racket

Post by mimosa » 20. Sep 2012, 10:08

I cheated and looked at the Arch PKGBUILD
:o

That still leaves the problem of how they (or whoever packaged it first) worked it out.

I hope to put the finishing touches to this today (after I head over to Arch and see how they did it) :mrgreen:

User avatar
laprjns
Salix Warrior
Posts: 1039
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: [WIP]racket

Post by laprjns » 20. Sep 2012, 10:34

I use this as my starting point template

Code: Select all

# lets deal with the icons
	for size in 10 22 24 32 48 64 128
	do
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/
	cp -rf $startdir/src/$pkgname-$pkgver/share/agender${size}.png $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/
	done
and make appropriate adjustments required by the package.
So in this case I would end up with this:

Code: Select all

# lets deal with the icons
	for size in 32 48
	do
	mkdir -p $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/
	cp -rf $startdir/src/$pkgname-$pkgver/collects/icons/plt-${size}.png $startdir/pkg/usr/share/icons/hicolor/${size}x${size}/apps/
	done 
And for full disclosure, I stole this from one of gapan's SLBUILDs back a few years ago.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

Re: [WIP]racket

Post by mimosa » 20. Sep 2012, 13:59

The "docs" line in the SLKBUILD includes files such as README. Where are these searched for? In this case, there is a file "COPYING.txt" (basically the licence) hidden away in a subdirectory doc/release-notes. Do I need to do anything special to make sure this is included - or should I upload it myself and include it in the "source" line along with the .desktop file and any others?

User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

Re: [WIP]racket

Post by mimosa » 21. Sep 2012, 15:21

man SLKBUILD answers my question about docs:
Don't worry
about specifiying any path or the case of the docs because slkbuild does a case insensitive recur‐
sive search for whatever you provide.
However that leads to a related question: what happens when, say, the top directory contains a README file, but so do one or more directories beneath it? That is actually the case here, to a spectacular extent:

Code: Select all

vanilla[racket-5.3]$ find ./ -name README
./README
./collects/2htdp/utest/README
./collects/mzscheme/examples/README
./collects/tests/racket/README
./collects/tests/framework/README
./collects/tests/gracket/README
./collects/tests/mzcom/README
./collects/web-server/compat/0/README
./collects/web-server/compat/README
./collects/redex/examples/r6rs/README
./collects/redex/examples/README
./collects/defaults/README
./collects/frtime/demos/README
./collects/slatex/README
./src/foreign/libffi/README
./src/foreign/README
./src/racket/gc2/README
./src/racket/gc/doc/README
./src/racket/README
./src/racket/src/lightning/README
./src/racket/src/gmp/README
./src/racket/sgc/README
./src/gracket/README
./src/README
This last file contains installation info, the first one points to the licence.

User avatar
gapan
Salix Wizard
Posts: 5532
Joined: 6. Jun 2009, 17:40

Re: [WIP]racket

Post by gapan » 21. Sep 2012, 16:23

In that case, one of them goes in. You'll have to stop using the docs array in that case and process them manually.
Image
Image

User avatar
mimosa
Salix Warrior
Posts: 3101
Joined: 25. May 2010, 17:02
Contact:

Re: [WIP]racket

Post by mimosa » 21. Sep 2012, 18:41

What criterion should I use to decide what to include? Most of those are introductions to the files in a particular directory, and won't even make sense in /usr/doc/$pkgname-$pkgver. On the other hand, racket is very well documented internally.

My inclination is to omit the README in the top level (which just points to COPYING.txt one level below for licence information), include the latter but renamed as LICENCE, and the final README which contains the normal installation instructions; as well as any other ones like authors, todo.

Post Reply