Date: Wednesday, July 29, 2015 @ 09:36:44
  Author: arojas
Revision: 242682

archrelease: copy kde-unstable to kde-unstable-i686, kde-unstable-x86_64

Added:
  kig/repos/kde-unstable-i686/
  kig/repos/kde-unstable-i686/PKGBUILD
    (from rev 242681, kig/kde-unstable/PKGBUILD)
  kig/repos/kde-unstable-i686/kig.install
    (from rev 242681, kig/kde-unstable/kig.install)
  kig/repos/kde-unstable-x86_64/
  kig/repos/kde-unstable-x86_64/PKGBUILD
    (from rev 242681, kig/kde-unstable/PKGBUILD)
  kig/repos/kde-unstable-x86_64/kig.install
    (from rev 242681, kig/kde-unstable/kig.install)

---------------------------------+
 kde-unstable-i686/PKGBUILD      |   43 ++++++++++++++++++++++++++++++++++++++
 kde-unstable-i686/kig.install   |   12 ++++++++++
 kde-unstable-x86_64/PKGBUILD    |   43 ++++++++++++++++++++++++++++++++++++++
 kde-unstable-x86_64/kig.install |   12 ++++++++++
 4 files changed, 110 insertions(+)

Copied: kig/repos/kde-unstable-i686/PKGBUILD (from rev 242681, 
kig/kde-unstable/PKGBUILD)
===================================================================
--- kde-unstable-i686/PKGBUILD                          (rev 0)
+++ kde-unstable-i686/PKGBUILD  2015-07-29 07:36:44 UTC (rev 242682)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+
+pkgname=kig
+pkgver=15.07.80
+pkgrel=1
+pkgdesc="Interactive Geometry"
+url="http://kde.org/applications/education/kig/";
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('ktexteditor' 'boost-libs')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'python2' 'boost' 
'qt5-xmlpatterns')
+optdepends=('qt5-xmlpatterns: support for GeoGebra files')
+replaces=('kdeedu-kig')
+conflicts=('kdeedu-kig')
+install=${pkgname}.install
+source=("http://download.kde.org/unstable/applications/${pkgver}/src/kig-${pkgver}.tar.xz";)
+sha1sums=('a242e0d4d53fc465ba1f27c51a8f38d2c1c63e1d')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../kig-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  # Use the python2 executable
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' 
"${pkgdir}"/usr/bin/pykig.py
+}

Copied: kig/repos/kde-unstable-i686/kig.install (from rev 242681, 
kig/kde-unstable/kig.install)
===================================================================
--- kde-unstable-i686/kig.install                               (rev 0)
+++ kde-unstable-i686/kig.install       2015-07-29 07:36:44 UTC (rev 242682)
@@ -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
+}

Copied: kig/repos/kde-unstable-x86_64/PKGBUILD (from rev 242681, 
kig/kde-unstable/PKGBUILD)
===================================================================
--- kde-unstable-x86_64/PKGBUILD                                (rev 0)
+++ kde-unstable-x86_64/PKGBUILD        2015-07-29 07:36:44 UTC (rev 242682)
@@ -0,0 +1,43 @@
+# $Id$
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Andrea Scarpino <[email protected]>
+
+pkgname=kig
+pkgver=15.07.80
+pkgrel=1
+pkgdesc="Interactive Geometry"
+url="http://kde.org/applications/education/kig/";
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('ktexteditor' 'boost-libs')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'python2' 'boost' 
'qt5-xmlpatterns')
+optdepends=('qt5-xmlpatterns: support for GeoGebra files')
+replaces=('kdeedu-kig')
+conflicts=('kdeedu-kig')
+install=${pkgname}.install
+source=("http://download.kde.org/unstable/applications/${pkgver}/src/kig-${pkgver}.tar.xz";)
+sha1sums=('a242e0d4d53fc465ba1f27c51a8f38d2c1c63e1d')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../kig-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  # Use the python2 executable
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' 
"${pkgdir}"/usr/bin/pykig.py
+}

Copied: kig/repos/kde-unstable-x86_64/kig.install (from rev 242681, 
kig/kde-unstable/kig.install)
===================================================================
--- kde-unstable-x86_64/kig.install                             (rev 0)
+++ kde-unstable-x86_64/kig.install     2015-07-29 07:36:44 UTC (rev 242682)
@@ -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
+}

Reply via email to