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

pkgname=kio
AlmAck's avatar
AlmAck committed
4
pkgver=5.46.0
5
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
6 7 8 9 10
pkgdesc='Resource and network access abstraction'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kio'
license=('LGPL')
depends=('solid' 'karchive' 'kjobwidgets' 'kbookmarks' 'libxslt' 'kwallet'
Xuetian Weng's avatar
Xuetian Weng committed
11
        'desktop-file-utils' 'krb5' 'acl')
Xuetian Weng's avatar
Xuetian Weng committed
12
makedepends=("extra-cmake-modules>=${KFECMVersion}" 'kdoctools')
Xuetian Weng's avatar
Xuetian Weng committed
13 14 15 16
checkdepends=('xorg-server-xvfb' 'openbox')
groups=('kf5')
install=kio.install
options=("debug")
AlmAck's avatar
AlmAck committed
17
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
AlmAck's avatar
AlmAck committed
18 19 20 21
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
22 23 24

prepare() {
  mkdir -p build
AlmAck's avatar
AlmAck committed
25 26
  
  cd ${srcdir}/${pkgname}-${pkgver}
Xuetian Weng's avatar
Xuetian Weng committed
27 28 29 30
}

build() {
  cd build
AlmAck's avatar
AlmAck committed
31 32
  cmake ../${_pkgname}-${pkgver} \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
AlmAck's avatar
AlmAck committed
33 34 35 36 37 38
        -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 "$@"
Xuetian Weng's avatar
Xuetian Weng committed
39 40 41 42 43 44 45
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}