db-move: moved evolution from [testing] to [extra] (x86_64)
[arch-packages.git] / kde-dev-scripts / trunk / PKGBUILD
blob74a787dbb96f70c88fc9ad6cc01f04a9677745be
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
6 pkgver=23.04.0
7 pkgrel=1
8 pkgdesc='Scripts and setting files useful during development of KDE software'
9 url='https://www.kde.org/'
10 arch=(any)
11 license=(GPL LGPL FDL)
12 groups=(kde-applications kdesdk)
13 depends=(perl)
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'
17             'SKIP')
18 validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
19               F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87  # Christoph Feck <cfeck@kde.org>
20               D81C0CB38EB725EF6691C385BB463350D6EF31EF) # Heiko Becker <heiko.becker@kde.org>
22 build() {
23   cmake -B build -S $pkgname-$pkgver
24   cmake --build build
27 package() {
28   DESTDIR="$pkgdir" cmake --install build
30   # Fix python 2 path
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