1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Antonio Rojas <arojas@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=kde-dev-scripts
8 pkgdesc='Scripts and setting files useful during development of KDE software'
9 url='https://www.kde.org/'
11 license=(GPL LGPL FDL)
12 groups=(kde-applications kdesdk)
14 makedepends=(extra-cmake-modules kdoctools)
15 source=(https://download.kde.org/stable/release-service/$pkgver/src/$pkgname-$pkgver.tar.xz{,.sig})
16 sha256sums=('96808cf7071ef85e7635f337aabd7f299fcd31a76acfbe58b27a851238ad2880'
18 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7 # Albert Astals Cid <aacid@kde.org>
19 F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87 # Christoph Feck <cfeck@kde.org>
20 D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
23 cmake -B build -S $pkgname-$pkgver
28 DESTDIR="$pkgdir" cmake --install build
31 sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \
32 "$pkgdir"/usr/bin/{zonetab2pot.py,kde-systemsettings-tree.py,reviewboard-am}
33 sed -i 's|#! /usr/bin/env python|#!/usr/bin/env python2|' \
34 "$pkgdir"/usr/bin/{kdelnk2desktop.py,kde_generate_export_header}
36 # Install additional files
37 cd "$srcdir"/$pkgname-$pkgver
38 mkdir -p "$pkgdir"/usr/share/kde-dev-scripts
39 cp -r kde-devel-* gdb "$pkgdir"/usr/share/kde-dev-scripts