PKGBUILD 1.75 KB
Newer Older
totte's avatar
totte committed
1
# Include global configuration
Manuel's avatar
Manuel committed
2 3 4

pkgname="kde-dev-scripts"
arch=('x86_64')
AlmAck's avatar
AlmAck committed
5
pkgver=18.12.1
AlmAck's avatar
AlmAck committed
6
pkgrel=1
AlmAck's avatar
AlmAck committed
7 8 9 10 11 12 13 14
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)
15
options=('docs' 'debug')
AlmAck's avatar
AlmAck committed
16
source=("https://download.kde.org/stable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz"{,.sig})
AlmAck's avatar
AlmAck committed
17
sha256sums=('4386d4b79dc520a8bcba5c78a29b50bbf294444f98804ee4c582b67a39951dcc'
AlmAck's avatar
AlmAck committed
18
            'SKIP')
AlmAck's avatar
AlmAck committed
19 20
validpgpkeys=(CA262C6C83DE4D2FB28A332A3A6A4DB839EAA6D7  # Albert Astals Cid <aacid@kde.org>
              F23275E4BF10AFC1DF6914A6DBD2CE893E2D1C87) # Christoph Feck <cfeck@kde.org>
Manuel's avatar
Manuel committed
21

AlmAck's avatar
AlmAck committed
22 23 24 25
prepare() {
  mkdir -p build
}

Manuel's avatar
Manuel committed
26
build() {
AlmAck's avatar
AlmAck committed
27
  cd build
AlmAck's avatar
AlmAck committed
28 29 30 31 32 33 34 35 36
  cmake ../${pkgname}-${pkgver} \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@"
AlmAck's avatar
AlmAck committed
37
  make
Manuel's avatar
Manuel committed
38 39 40
}

package() {
AlmAck's avatar
AlmAck committed
41 42 43 44 45 46 47 48 49 50 51 52 53
  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
Fabian's avatar
Fabian committed
54
}