summaryrefslogtreecommitdiff
path: root/community/codeblocks
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/codeblocks
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/codeblocks')
-rw-r--r--community/codeblocks/PKGBUILD33
-rw-r--r--community/codeblocks/codeblocks.install26
2 files changed, 59 insertions, 0 deletions
diff --git a/community/codeblocks/PKGBUILD b/community/codeblocks/PKGBUILD
new file mode 100644
index 000000000..dfe3d6028
--- /dev/null
+++ b/community/codeblocks/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 94017 2013-07-13 12:31:23Z svenstaro $
+# Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+# Contributor: Robert Hollencamp <rhollencamp@gmail.com>
+# Contributor: Daniel J Griffiths <griffithsdj@inbox.com>
+# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=codeblocks
+pkgver=12.11
+pkgrel=3
+pkgdesc='Open source and cross-platform C/C++ IDE'
+arch=('i686' 'x86_64')
+url='http://www.codeblocks.org'
+license=('GPL3')
+depends=('boost-libs' 'bzip2' 'desktop-file-utils' 'gamin' 'gtk-update-icon-cache'
+ 'hicolor-icon-theme' 'hunspell' 'shared-mime-info' 'wxgtk')
+makedepends=('boost' 'zip')
+options=('!libtool')
+install=codeblocks.install
+source=(http://download.berlios.de/$pkgname/${pkgname}_${pkgver}-1.tar.gz)
+md5sums=('4fa8980a8c578b8b5589fceb9b0890d6')
+
+build() {
+ cd $pkgname-${pkgver}release*
+
+ LDFLAGS+=' -lX11'
+ ./configure --prefix=/usr --with-contrib-plugins=all
+ make
+}
+
+package() {
+ cd $pkgname-${pkgver}release*
+ make DESTDIR="$pkgdir" install
+}
diff --git a/community/codeblocks/codeblocks.install b/community/codeblocks/codeblocks.install
new file mode 100644
index 000000000..04d31f75b
--- /dev/null
+++ b/community/codeblocks/codeblocks.install
@@ -0,0 +1,26 @@
+pkgname=codeblocks
+
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-mime-database usr/share/mime
+ update-desktop-database -q
+ ln -s /usr/lib/libwxflatnotebook.so /usr/lib/libwxflatnotebook.so.0
+ ln -s /usr/lib/libwxchartctrl.so /usr/lib/libwxchartctrl.so.0
+ ln -s /usr/lib/libwxcustombutton.so /usr/lib/libwxcustombutton.so.0
+ }
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+ rm /usr/lib/libwxflatnotebook.so.0 \
+ /usr/lib/libwxchartctrl.so.0 /usr/lib/libwxcustombutton.so.0
+}
+
+pre_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-mime-database usr/share/mime
+ update-desktop-database -q
+}