[arch-commits] Commit in kde-dev-scripts/repos (testing-any testing-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Aug 21 05:17:57 UTC 2016


    Date: Sunday, August 21, 2016 @ 05:17:57
  Author: felixonmars
Revision: 274460

archrelease: copy trunk to testing-any

Added:
  kde-dev-scripts/repos/testing-any/
  kde-dev-scripts/repos/testing-any/PKGBUILD
    (from rev 274459, kde-dev-scripts/trunk/PKGBUILD)

----------+
 PKGBUILD |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

Copied: kde-dev-scripts/repos/testing-any/PKGBUILD (from rev 274459, kde-dev-scripts/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2016-08-21 05:17:57 UTC (rev 274460)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kde-dev-scripts
+pkgver=16.08.0
+pkgrel=1
+pkgdesc='Scripts and setting files useful during development of KDE software'
+url='https://www.kde.org/applications/development/'
+arch=('any')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdesdk')
+makedepends=('extra-cmake-modules' 'kdoctools' 'kdelibs4support')
+replaces=('kdesdk-dev-scripts')
+conflicts=('kdesdk-dev-scripts')
+source=("http://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+sha1sums=('cde890bbf3e185fbc99765344d403522e97c029e')
+
+prepare() {
+  mkdir -p build
+}
+
+build() {
+  cd build
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="$pkgdir" install
+
+  # Fix python 2 path
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
+    "$pkgdir"/usr/bin/{zonetab2pot.py,kde-systemsettings-tree.py,reviewboard-am}
+  sed -i 's|#! /usr/bin/env python|#!/usr/bin/env python2|' \
+    "$pkgdir"/usr/bin/{kdelnk2desktop.py,kde_generate_export_header}
+
+# Install additional files
+  cd "$srcdir"/$pkgname-$pkgver
+  mkdir -p "$pkgdir"/usr/share/kde-dev-scripts
+  cp -r kde-devel-* gdb "$pkgdir"/usr/share/kde-dev-scripts
+}



More information about the arch-commits mailing list