PKGBUILD 1.27 KB
Newer Older
1
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/kdelibs4support
Xuetian Weng's avatar
Xuetian Weng committed
2 3

pkgname=kdelibs4support
4
pkgver=5.46.0
5
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
6 7 8 9
pkgdesc='Porting aid from KDELibs4'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kdelibs4support'
license=('LGPL')
almack's avatar
almack committed
10
depends=('kunitconversion' 'kdesignerplugin' 'kinit' 'kitemmodels' 'kemoticons' 'kded')
Luca Giambonini's avatar
Luca Giambonini committed
11
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'kdoctools' 'qt5-tools' 'networkmanager' 'perl-uri')
Xuetian Weng's avatar
Xuetian Weng committed
12 13
groups=('kf5-aids')
options=("debug")
Luca Giambonini's avatar
Luca Giambonini committed
14
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
15 16 17 18
source=(${_url}{,.sig})
sha256sums=($(curl "$_url.sha256" | cut -c-64)
            SKIP)
validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure@kde.org>
Xuetian Weng's avatar
Xuetian Weng committed
19 20 21 22 23 24 25

prepare() {
  mkdir -p build
}

build() {
  cd build
Luca Giambonini's avatar
Luca Giambonini committed
26 27
  cmake ../${_pkgname}-${pkgver} \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
28 29 30 31 32 33
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DKDE_INSTALL_LIBDIR=lib \
        -DKDE_INSTALL_SYSCONFDIR=/etc \
        -DKDE_INSTALL_LIBEXECDIR=lib \
        -DBUILD_TESTING=OFF \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON "$@" 
34
  make
Xuetian Weng's avatar
Xuetian Weng committed
35 36 37 38 39
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
Luca Giambonini's avatar
Luca Giambonini committed
40 41
  # conflicts with kio
  rm -r ${pkgdir}/usr/share/doc/HTML/*/kcontrol5
Xuetian Weng's avatar
Xuetian Weng committed
42
}