Notice: Undefined variable: name in /srv/http/vhosts/ on line 248

Package Details: qooxdoo-sdk 5.0-1

Git Clone URL: (read-only)
Package Base: qooxdoo-sdk
Description: Framework for creating rich internet applications.
Upstream URL:
Licenses: LGPL, EGPL
Provides: qooxdoo
Submitter: None
Maintainer: lepokle
Last Packager: lepokle
Votes: 1
Popularity: 0.000000
First Submitted: 2011-04-15 09:38
Last Updated: 2015-07-22 19:20

Latest Comments

lepokle commented on 2013-12-30 09:43

Thank you Peter, I simplified the script as suggested.

peter.slizik commented on 2013-08-20 15:28

Hi, lepokle,
I find the build script quite complicated. Here the simplified script I suggest:

for file in `find "$srcdir/$pkgname-$pkgver-sdk" -name '*.py'`; do
sed -i '1s|^#!/usr/bin/env[ \t]\+python\b|#!/usr/bin/env python2|' "$file"

And that's it, only three lines.

The find command:
- The regex switch is not necessary. Simple "find . -name '*.py'" will do the job. The single quotes around *.py are necessary to prevent the shell from expanding the asterisk (it will be expanded by find instead).

The sed command:
- The '-i' switch instructs sed to work in-place (without creating additional files).
- Number '1' tells sed to operate only on the first line of the file.
- You don't have to check if files do start with "#!/usr/bin/env python". If they don't, the file won't be modiefied. This will make your script more terse.
- '\b' tells sed to skip files that have already been prepared for python2 (there are no in qooxdoo as far as I know, but it does not harm).

Regards, Peter

spider-mario commented on 2011-11-13 14:57

Here is an alternative PKGBUILD:

spider-mario commented on 2011-11-13 14:52

As this package does not contain any ELF file, its building could be speeded up by adding “!strip” to its PKGBUILD options.