Package Details: kdesrc-build-git 22.07.r615.g479326d-1

Git Clone URL: https://aur.archlinux.org/kdesrc-build-git.git (read-only, click to copy)
Package Base: kdesrc-build-git
Description: A script to build KDE software from KDE's source repositories
Upstream URL: https://apps.kde.org/kdesrc_build
Keywords: kde
Licenses: GPL
Submitter: JiajunW
Maintainer: Ashark
Last Packager: Ashark
Votes: 3
Popularity: 0.000000
First Submitted: 2013-01-07 16:52 (UTC)
Last Updated: 2024-02-18 14:05 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

DaanDeMeyer commented on 2019-08-25 12:19 (UTC)

Works perfectly. Thanks for the quick follow up!

bisen2 commented on 2019-08-25 01:00 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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-20 17:35 (UTC)

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

JiajunW commented on 2014-07-04 16:31 (UTC)

@ilpianista thx for advise! I have installed kdesrc-buildrc-sample in /usr/share/kdesrc-build/.