mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
47 lines
1.3 KiB
Bash
47 lines
1.3 KiB
Bash
# Include global configuration
|
|
source ../kdeapps.conf
|
|
|
|
pkgname="kde-dev-scripts"
|
|
arch=('x86_64')
|
|
pkgver=${_kdever}
|
|
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-scripts)
|
|
conflicts=(kdesdk-scripts kdesdk-doc)
|
|
options=('docs' 'debug')
|
|
source=("$_mirror/${pkgname}-$_kdever.tar.xz"{,.sig})
|
|
sha256sums=(`grep ${pkgname}-$_kdever.tar.xz ../kdeapps.sums | cut -d " " -f1`
|
|
'SKIP')
|
|
validpgpkeys=(${Avalidpgpkeys[@]})
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
cmake_kf5 ../${pkgname}-${pkgver}
|
|
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
|
|
}
|