[arch-commits] Commit in kig/repos (6 files)
Felix Yan
fyan at archlinux.org
Tue Apr 21 07:41:00 UTC 2015
Date: Tuesday, April 21, 2015 @ 09:41:00
Author: fyan
Revision: 237855
archrelease: copy trunk to staging-i686, staging-x86_64
Added:
kig/repos/staging-i686/
kig/repos/staging-i686/PKGBUILD
(from rev 237854, kig/trunk/PKGBUILD)
kig/repos/staging-i686/kig.install
(from rev 237854, kig/trunk/kig.install)
kig/repos/staging-x86_64/
kig/repos/staging-x86_64/PKGBUILD
(from rev 237854, kig/trunk/PKGBUILD)
kig/repos/staging-x86_64/kig.install
(from rev 237854, kig/trunk/kig.install)
----------------------------+
staging-i686/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
staging-i686/kig.install | 12 ++++++++++++
staging-x86_64/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
staging-x86_64/kig.install | 12 ++++++++++++
4 files changed, 108 insertions(+)
Copied: kig/repos/staging-i686/PKGBUILD (from rev 237854, kig/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD (rev 0)
+++ staging-i686/PKGBUILD 2015-04-21 07:41:00 UTC (rev 237855)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kig
+pkgver=15.04.0
+pkgrel=2
+pkgdesc="Interactive Geometry"
+url="http://kde.org/applications/education/kig/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('ktexteditor' 'kdelibs4support' 'boost-libs')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'python2' 'boost')
+replaces=('kdeedu-kig')
+conflicts=('kdeedu-kig')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kig-${pkgver}.tar.xz")
+sha1sums=('5a1bbfa9dcdfb95d4d598ea1b2c8a3e081ce57d2')
+
+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/staging-i686/kig.install (from rev 237854, kig/trunk/kig.install)
===================================================================
--- staging-i686/kig.install (rev 0)
+++ staging-i686/kig.install 2015-04-21 07:41:00 UTC (rev 237855)
@@ -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/staging-x86_64/PKGBUILD (from rev 237854, kig/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2015-04-21 07:41:00 UTC (rev 237855)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kig
+pkgver=15.04.0
+pkgrel=2
+pkgdesc="Interactive Geometry"
+url="http://kde.org/applications/education/kig/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('ktexteditor' 'kdelibs4support' 'boost-libs')
+makedepends=('extra-cmake-modules' 'kdoctools' 'python' 'python2' 'boost')
+replaces=('kdeedu-kig')
+conflicts=('kdeedu-kig')
+install=${pkgname}.install
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kig-${pkgver}.tar.xz")
+sha1sums=('5a1bbfa9dcdfb95d4d598ea1b2c8a3e081ce57d2')
+
+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/staging-x86_64/kig.install (from rev 237854, kig/trunk/kig.install)
===================================================================
--- staging-x86_64/kig.install (rev 0)
+++ staging-x86_64/kig.install 2015-04-21 07:41:00 UTC (rev 237855)
@@ -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