Great distro guys! My app works without installing any other pre-requisites.
I wonder if you could help me package my app for KahelOS (or ArchLinux in general)?
See screenshot: http://konsolscript.org/web/2009/11/16/konsolscript-on-kahelos/
Great distro guys! My app works without installing any other pre-requisites.
I wonder if you could help me package my app for KahelOS (or ArchLinux in general)?
See screenshot: http://konsolscript.org/web/2009/11/16/konsolscript-on-kahelos/
cross-posted from another article:
@creek23: You can begin by reading here: http://www.archlinux.org/pacman.. Well, it's where I would start at least (I'm just starting out myself ;-) Hey, I took a look around your blog, felt a little at home. Kudos to you and keep it up...
Welcome aboard!
We're delighted that you take interest on using Kahel OS on your app! Nice work on konsolscript! We value developers here in the Kahel OS community, and we really like more developers to use Kahel.
Creating packages for Kahel OS is pretty straightforward, it is similar to creating a 'Makefile' where 'make' is the parser that perform the actions in the Makefile script.
Kahel OS uses PKGBUILD and 'makepkg' is the parser that perform the actions and create the package, you can start packaging in Kahel and Archlinux by reviewing some applications yourself in AUR using yaourt.
Once again, welcome!
@joelbryan: That's very definitive analogy. Thanks a lot. Now I know what I need to do, though I still don't know how to do it. :D
@agi: How's it going with your packaging with Pacman?
Is there a 'helloworld'-like packaging on basics of packaging? Like this one -- https://wiki.ubuntu.com/PackagingGuide/PackagingOverview
yea..the easiest way would probably be creeating a pkgbuild which links to your source file you hosted.
Got an update of my app but still can't make a package for Arch or Kahel. :(
http://konsolscript.org/web/2010/04/03/quixie-build-100402-released/
hello ..
If you would kindly provide the following info : dependencies of your app
license
source ( with instructions to compile ) or recompiled binaries ..
i would gladly make the package for you ...
Thank you. If you are to package the pre-compiled binaries maybe you could extract it from the DEB file, which already contains license (GPL2, btw).
(http://sourceforge.net/projects/konsolscript/files/pre-releases/Quixie%20%28pre-release%29/quixie_2010.04.02_i386.deb/download)
If we are to settle in packaging the source instead it would be a hassle since my app is written in FreeBASIC, which doesn't seem to have a package for Arch/Kahel.
Still, a how-to-build page can be found here:
http://sourceforge.net/apps/mediawiki/konsolscript/index.php?title=How_to_build_Quixie%3F
The source is at the CVS repos (module is 'quixie'):
cvs -d:pserver:anonymous@konsolscript.cvs.sourceforge.net:/cvsroot/konsolscript login
Btw, the dependencies are:
* X11,
* libxpm,
* LibC,
* nCurses,
* zLib, and
* vorbis
I build the package from the i386 deb package
Hm...as i dont have a 32 bit machine to test it out on , i am unable to try it ..:x sorry
But anyway..heres the package :) It installs fine ..
http://dl.dropbox.com/u/3789720/quixie-2010.04.02-1-i686.pkg.tar.xz
Thank you very much. Added the link to:
http://sourceforge.net/apps/mediawiki/konsolscript/index.php?title=Quixie#Download
Will upload it on SourceForge's project page later.
I wonder if you have created any script to automate the packaging. This is to re-use it everytime there's an update.
Okay...as you can see...my bash scripting is woefully sucky..lol :)
But i have managed to craft out a pkgbuild...( it might be non-standard ...lol )
Anyway..heres the PKGBUILD...Just save the following into a text file ...named PKGBUILD
and run makepkg where the PKGBUILD is stored...( you must have pacman to do so...)
P.S this pkgbuild is build around your deb package...so as to minimize compiling...
This pkgbuild also caters to both i686 and x86_64 OS ...using the if statement
Dependencies are automatically handled for each architecture ...
Start copying from here( not including this line :P ) :
## Maintainer: creek23
# Contributer: fplolz (samuel wang)
pkgname=quixie
pkgver=100402
pkgrel=1
pkgdesc="Quixie is 'the' other KonsolScript engine being written in FreeBASIC. Quixie is expected to be the GNU/Linux KS engine, which makes KS a cross-platform scripting language."
arch=('i686' 'x86_64')
license=('GPLv2')
depends=('libx11' 'libxext' 'zlib' 'libxpm' 'libxrandr' 'xorg-utils' 'xorg-xauth' 'glibc' 'xorg-server' 'libvorbis' 'xorg-xinit')
makedepends=(deb2targz)
url="http://sourceforge.net/apps/mediawiki/konsolscript/index.php?title=Quixie"
source=(http://sourceforge.net/projects/konsolscript/files/pre-releases/Quixie%20%28pre-release%29/quixie_2010.04.02_i386.deb/download)
md5sums=(872e7bf73bb762e54a7e2758d0b92021)
if [ $CARCH = 'i686' ] ;
then
depends=('libx11' 'libxext' 'zlib' 'libxpm' 'libxrandr' 'xorg-utils' 'xorg-xauth' 'glibc' 'xorg-server' 'libvorbis' 'xorg-xinit')
optdepends=('alsa-lib: enables sound through ALSA'
'libxcursor: coloured mouse pointer support'
'libxi: enables joystick and tablet support'
'libxinerama: enables spanning multiple screens'
'libpng: enable PNG images'
'libjpeg: enable JPEG images'
'openssl: support for secure Internet communication'
'libcups: printing support'
'libxxf86vm: perform gamma adjustments'
'hal: automatically detect CD-ROMs, DVDs, and USB keys'
'fontconfig: enables access to TrueType fonts'
'unzip: required to install Guild Wars, automatic installer extraction'
)
else
depends=('lib32-libx11' 'lib32-libxext' 'zlib' 'lib32-libxpm' 'lib32-libxrandr' 'xorg-utils' 'xorg-xauth' 'lib32-glibc' 'xorg-server' 'lib32-libvorbis' 'xorg-xinit')
optdepends=('lib32-nvidia-utils: enables 3D under nvidia cards'
'lib32-catalyst-utils:enables 3D under ati cards'
'lib32-alsa-lib: enables sound through ALSA'
'lib32-libxcursor: coloured mouse pointer support'
'lib32-libxinerama: enables spanning multiple screens'
'lib32-openssl: support for secure Internet communication'
'lib32-libcups: printing support'
'lib32-libxxf86vm: perform gamma adjustments'
'lib32-libxi: enables joystick and tablet support'
'lib32-libpng: enable PNG images'
'lib32-libjpeg: enable JPEG images'
'lib32-hal: automatically detect CD-ROMs, DVDs, and USB keys'
'lib32-fontconfig: enables access to TrueType fonts'
'unzip: required to install Guild Wars, automatic installer extraction'
)
fi
build() {
cd $srcdir/
mv download download.deb
deb2targz download.deb || return 1
tar xf download.tar.gz -C $startdir/pkg || return 1
#rm $startdir/pkg/usr -r
}
End copying here :) ...
Heres a few things to note...Since i am not familiar with format of your uploading to source forge, i cant make the pkgbuild to auto update itself..
So ...The source has to change with each build ...The md5sum has to change with each build..( md5sum of the downloaded deb file )
and as u can see.. i got some ugly workarounds regarding the naming of the file when the deb is downloaded...
phew...sorry for my long windedness :) in short ..PKGBUILD works :)
You must log in to post.