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

Andrea Scarpino andrea at archlinux.org
Sun Jul 24 20:13:40 EDT 2011


    Date: Sunday, July 24, 2011 @ 20:13:40
  Author: andrea
Revision: 132597

move pkgbuilds to trunk; cleanup

Added:
  kdeedu-cantor/trunk/PKGBUILD
    (from rev 132557, kdeedu-cantor/kde-unstable/PKGBUILD)
  kdeedu-cantor/trunk/kdeedu-cantor.install
    (from rev 132557, kdeedu-cantor/kde-unstable/kdeedu-cantor.install)

-----------------------+
 PKGBUILD              |   34 ++++++++++++++++++++++++++++++++++
 kdeedu-cantor.install |   12 ++++++++++++
 2 files changed, 46 insertions(+)

Copied: kdeedu-cantor/trunk/PKGBUILD (from rev 132557, kdeedu-cantor/kde-unstable/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2011-07-25 00:13:40 UTC (rev 132597)
@@ -0,0 +1,34 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kdeedu-cantor
+pkgver=4.7.0
+pkgrel=1
+pkgdesc="KDE Frontend to Mathematical Software"
+url="http://kde.org/applications/education/cantor/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde' 'kdeedu')
+depends=('kdebase-runtime' 'libspectre')
+makedepends=('cmake' 'automoc4' 'r')
+optdepends=('maxima: Maxima backend'
+            'octave: Octave backend'
+            'r: R backend')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/${pkgver}/src/cantor-${pkgver}.tar.bz2")
+sha1sums=('2ab29119e2289d697cc0f623cbdd90933697c1de')
+
+build() {
+  cd "${srcdir}"
+  mkdir build
+  cd build
+  cmake ../cantor-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd "${srcdir}"/build
+  make DESTDIR="${pkgdir}" install
+}

Copied: kdeedu-cantor/trunk/kdeedu-cantor.install (from rev 132557, kdeedu-cantor/kde-unstable/kdeedu-cantor.install)
===================================================================
--- kdeedu-cantor.install	                        (rev 0)
+++ kdeedu-cantor.install	2011-07-25 00:13:40 UTC (rev 132597)
@@ -0,0 +1,12 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    update-desktop-database -q
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}



More information about the arch-commits mailing list