Package Details: kdesrc-build-git r2096.97510bf-1

Git Clone URL: (read-only, click to copy)
Package Base: kdesrc-build-git
Description: A script to build KDE software from KDE's source repositories
Upstream URL:
Keywords: kde
Licenses: GPL
Conflicts: kdesrc-build
Provides: kdesrc-build
Submitter: JiajunW
Maintainer: IslandC0der
Last Packager: bisen2
Votes: 3
Popularity: 0.004835
First Submitted: 2013-01-07 16:52
Last Updated: 2020-08-16 16:08

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

1 2 3 Next › Last »

SGOrava commented on 2020-09-19 23:02

I was getting error

Can't locate ksb/ in @INC (you may need to install the ksb::Debug module)
 (@INC contains: /share/kdesrc-build/modules /usr/lib/perl5/5.32/site_perl ...)
at /bin/kdesrc-build line 118.

The workaround is to set PERLLIB env var to point to kdesrc-build modules


Modelmat commented on 2020-09-18 05:06

Something's broken with this AUR package, I'm not sure what. Installing manually from KDE's repo seems to work, but using this package I get:

➜  kde kdesrc-build
kdesrc-build encountered an exceptional error condition:
    Config Error: Unable to open file /usr/bin/kf5-qt5-build-include which was included from line 52
        Can't continue, so stopping now.

(This also occurs on the non-git version of this package)

bisen2 commented on 2019-11-13 23:34

Awesome, thanks for the heads up! I just pushed the changes you requested.

DaanDeMeyer commented on 2019-11-11 15:12

I recently found out that DESTDIR works fine with cmake --install so CMAKE_INSTALL_PREFIX can be changed back to /usr and the cmake --install command should be DESTDIR="${pkgdir}" cmake --install build. This way is generally going to be safer than the current one because CMAKE_INSTALL_PREFIX is set to its actual final value (/usr/) when CMake is configured.

DaanDeMeyer commented on 2019-08-25 12:19

Works perfectly. Thanks for the quick follow up!

bisen2 commented on 2019-08-25 01:00

Looks like the issue was in line 31. I changed it from -DCMAKE_INSTALL_PREFIX=/usr to -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr and it built without issue. Just pushed the changes, so let me know if it doesn't work for you.

DaanDeMeyer commented on 2019-08-24 20:06

Why would the PKGBUILD be trying to install directly to /usr? Does this error occur when running makepkg -s?

bisen2 commented on 2019-08-24 17:09

When building with your PKGBUILD, I get:

CMake Error at build/cmake_install.cmake:49 (file):
  file INSTALL cannot copy file
  to "/usr/share/kdesrc-build/modules/ksb/".

with CMAKE_GENERATOR as Unix Makefiles.

DaanDeMeyer commented on 2019-08-24 15:47

Currently, the build breaks if a user has the CMAKE_GENERATOR environment variable set to anything other than Unix Makefiles. I've adapted the PKGBUILD so it works with any CMake generator:

# Maintainer: Ben Isenhart <bisenhar(at)uvm(dot)edu>
# Contributor: Andrea Scarpino <>
# Contributor: Wang Jiajun <>

pkgdesc="A script to build KDE software from KDE's source repositories"
depends=('perl-libwww' 'perl-xml-parser' 'dialog' 'perl-json' 'perl-io-socket-ssl' 'perl-net-ssleay' 'perl-yaml-syck')
makedepends=('cmake' 'git')
optdepends=('subversion: download source code using svn'
            'git: download source code using git')

pkgver() {
  cd kdesrc-build
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

build() {
  cmake \
    -S kdesrc-build \
    -B build \
    -DCMAKE_BUILD_TYPE=Release \
  cmake --build build

package() {
  cmake --install build --prefix "${pkgdir}"/usr

  install -d "${pkgdir}"/usr/share/doc/samples
  install -Dm644 kdesrc-build/kdesrc-buildrc-kf5-sample \
  install -Dm644 kdesrc-build/kf5-{applications,frameworks,kdepim,qt5,workspace}-build-include \

bisen2 commented on 2019-05-10 14:26

Hi, I have recently adopted this package. If you have any issues or suggested improvements, feel free to email me, leave a comment here, or make an issue at