Package Details: kdesrc-build-git r2091.aa925d6-1

Git Clone URL: https://aur.archlinux.org/kdesrc-build-git.git (read-only)
Package Base: kdesrc-build-git
Description: A script to build KDE software from KDE's source repositories
Upstream URL: https://kdesrc-build.kde.org/
Keywords: kde
Licenses: GPL
Conflicts: kdesrc-build
Provides: kdesrc-build
Submitter: JiajunW
Maintainer: bisen2
Last Packager: bisen2
Votes: 2
Popularity: 0.159548
First Submitted: 2013-01-07 16:52
Last Updated: 2019-09-18 12:49

Dependencies (11)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

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
  "/home/ben/Documents/build/aur/kdesrc-build-git/src/kdesrc-build/modules/ksb/Application.pm"
  to "/usr/share/kdesrc-build/modules/ksb/Application.pm".

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 <andrea@archlinux.org>
# Contributor: Wang Jiajun <amesists@gmail.com>

pkgname=kdesrc-build-git
pkgver=r2082.f1d2468
pkgrel=1
pkgdesc="A script to build KDE software from KDE's source repositories"
url='https://kdesrc-build.kde.org/'
arch=('any')
license=('GPL')
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')
conflicts=('kdesrc-build')
provides=('kdesrc-build')
source=("git://anongit.kde.org/kdesrc-build.git")
md5sums=('SKIP')

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 \
    -DCMAKE_INSTALL_PREFIX=/usr
  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 \
    "${pkgdir}"/usr/share/doc/samples/
  install -Dm644 kdesrc-build/kf5-{applications,frameworks,kdepim,qt5,workspace}-build-include \
    "${pkgdir}"/usr/share/doc/samples/
}

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 https://gitlab.com/bisen2/kdesrc-build-git

ilpianista commented on 2015-01-21 17:13

you broke cds into build() and package() now...

ilpianista commented on 2015-01-20 17:35

Please fix pkgver(), it does cd into $pkgname instead of $_pkgname

JiajunW commented on 2014-07-04 16:31

@ilpianista thx for advise!

I have installed kdesrc-buildrc-sample in /usr/share/kdesrc-build/.

ilpianista commented on 2014-06-22 19:02

kdesrc-build encountered an exceptional error condition: Runtime Error: Logical module groups require the Perl JSON module

perl-json dep is missing