[arch-commits] Commit in codeblocks/trunk (PKGBUILD codeblocks.install)

Alexander Rødseth arodseth at archlinux.org
Mon Feb 1 13:19:36 UTC 2016


    Date: Monday, February 1, 2016 @ 14:19:35
  Author: arodseth
Revision: 159786

upgpkg: codeblocks 16.01-1

Modified:
  codeblocks/trunk/PKGBUILD
  codeblocks/trunk/codeblocks.install

--------------------+
 PKGBUILD           |   17 ++++++++++-------
 codeblocks.install |   16 +++-------------
 2 files changed, 13 insertions(+), 20 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-01 12:11:38 UTC (rev 159785)
+++ PKGBUILD	2016-02-01 13:19:35 UTC (rev 159786)
@@ -6,8 +6,8 @@
 # Contributor: Stefan Husmann <stefan-husmann at t-online.de>
 
 pkgname=codeblocks
-pkgver=13.12
-pkgrel=5
+pkgver=16.01
+pkgrel=1
 pkgdesc='Cross-platform C/C++ IDE'
 arch=('x86_64' 'i686')
 url='http://www.codeblocks.org/'
@@ -16,21 +16,24 @@
          'hicolor-icon-theme' 'hunspell' 'shared-mime-info' 'wxgtk2.8' 'libsm' 'webkitgtk2')
 makedepends=('boost' 'zip' 'webkitgtk2')
 install=codeblocks.install
-source=("http://sourceforge.net/projects/codeblocks/files/Sources/$pkgver/codeblocks_$pkgver-1.tar.gz")
-sha256sums=('772450046e8c8ba2ea0086acf433a46b83e6254fae64df9c8ca132a22f949610')
+source=("http://sourceforge.net/projects/codeblocks/files/Sources/$pkgver/codeblocks_$pkgver.tar.gz")
+sha256sums=('30fb9d206df4ab3c2e2fec2451a0a7c9723bfed9a673cc9be71e881c529d5a03')
 
 build() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver.release"
 
-# Fix build with boost 1.59
+  # Fix build with boost 1.59
   export CPPFLAGS+=" -DBOOST_ERROR_CODE_HEADER_ONLY"
   export WX_CONFIG_PATH=/usr/bin/wx-config-2.8
+
+  ./bootstrap
   ./configure --prefix=/usr --with-contrib-plugins=all
   make
 }
 
 package() {
-  make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
+  make -C "$pkgname-$pkgver.release" DESTDIR="$pkgdir" install
 }
 
+# getver: -u 2 codeblocks.org/downloads/source
 # vim:set ts=2 sw=2 et:

Modified: codeblocks.install
===================================================================
--- codeblocks.install	2016-02-01 12:11:38 UTC (rev 159785)
+++ codeblocks.install	2016-02-01 13:19:35 UTC (rev 159786)
@@ -1,21 +1,11 @@
-post_install() {
+post_upgrade() {
   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
   update-mime-database usr/share/mime &>/dev/null
   update-desktop-database -q
 }
 
-pre_upgrade() {
-  pre_remove
+post_install() {
+  post_upgrade
 }
 
-post_upgrade() {
-  post_install
-}
-
-pre_remove() {
-  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-  update-mime-database usr/share/mime &>/dev/null
-  update-desktop-database -q
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list