PKGBUILD 1.19 KB
Newer Older
1
# Contributions from Arch:
Xuetian Weng's avatar
Xuetian Weng committed
2 3 4 5
# Contributor : Andrea Scarpino <andrea@archlinux.org>


pkgname=kdoctools
Luca Giambonini's avatar
Luca Giambonini committed
6
pkgver=5.47.0
Luca Giambonini's avatar
Luca Giambonini committed
7
pkgrel=1
Xuetian Weng's avatar
Xuetian Weng committed
8 9 10 11 12
pkgdesc='Various tools to work with documentation'
arch=('x86_64')
url='https://projects.kde.org/projects/frameworks/kdoctools'
license=('LGPL')
depends=('karchive' 'docbook-xsl')
13
makedepends=("extra-cmake-modules>=${KFECMVersion}" "ki18n" "python3" "perl-uri")
Xuetian Weng's avatar
Xuetian Weng committed
14 15
groups=('kf5')
options=('staticlibs' 'debug')
Luca Giambonini's avatar
Luca Giambonini committed
16
_url="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
17 18 19 20
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
21 22 23 24 25 26 27

prepare() {
  mkdir -p build
}

build() {
  cd build
28
  cmake ../${pkgname}-${pkgver} \
Luca Giambonini's avatar
Luca Giambonini committed
29
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
30 31 32 33 34 35
        -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
36
    -DPYTHON_EXECUTABLE=/usr/bin/python3
Xuetian Weng's avatar
Xuetian Weng committed
37 38 39
  make
}

40 41 42 43
# check() {
#   cd build
#   make test
# }
Xuetian Weng's avatar
Xuetian Weng committed
44 45 46 47 48

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