#Packager: George Vlahavas pkgname=codeblocks pkgver=20.03 pkgrel=1gv source=("https://sourceforge.net/projects/codeblocks/files/Sources/$pkgver/codeblocks-$pkgver.tar.xz") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://codeblocks.org CXXFLAGS="$CFLAGS -fpermissive" doinst() { if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -x /usr/bin/update-mime-database ]; then /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 fi fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "codeblocks (The open source, free C, C++ and Fortran IDE)" "Code::Blocks is a free C, C++ and Fortran IDE built to meet the most" "demanding needs of its users. It is designed to be very extensible and" "fully configurable. 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!" ) build() { cd $startdir/src/$pkgname-$pkgver ./bootstrap export LDFLAGS="-lX11" ./configure --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var \ --sysconfdir=/etc \ --disable-static \ -with-boost-libdir=/usr/lib$LIBDIRSUFFIX \ --build=$arch-slackware-linux make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg }