#Packager: Vasile Coman #Former Packager(s): Name #Anything commented out is optional and can be deleted #Mandatory pkgname=codeblocks pkgver=10.05 pkgrel=1vc source=("http://download.berlios.de/codeblocks/$pkgname-$pkgver-src.tar.bz2") sourcetemplate=http://people.salixos.org/kerd/$pkgname/$pkgver/ docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme') url="http://www.codeblocks.org/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Codeblocks (Cross platform free C++ IDE)" "Code::Blocks is a free C++ IDE built to meet the most demanding needs" "of its users. It is designed to be very extensible and fully" "configurable. Finally, an IDE with all the features you need, having" "a consistent look, feel and operation across platforms." "Built around a plugin framework, Code::Blocks can be extended with" "plugins. Any kind of functionality can be added by installing/coding" "a plugin. For instance, compiling and debugging functionality is" "already provided by plugins!" "http://www.codeblocks.org/" ) build() { cd $startdir/src/$pkgname-$pkgver-release ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var/lib \ --disable-static \ --mandir=/usr/man \ --with-contrib-plugins=all \ --build=$arch-slackware-linux || return 1 make || return 1 make install DESTDIR=$startdir/pkg || return 1 mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/src/$pkgname-$pkgver-release/src/mime/codeblocks.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps } doinst() { #update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi }