Arch Linux PKGBUILD: depends should be listed inside package() function
The depends list should be relocated inside the pkgbuid()
function because they are not required to be installed prior to build it. According to PKGBUILD:
4.1 depends
An array of packages that must be installed for the software to build and run. Dependencies defined inside the
package()
function are only required to run the software.
This is related to FS#80289, which states:
As mentioned in the PKGBUILD, it is automatically generated by the scripts in https://invent.kde.org/packaging/kdesdk-devenv-dependencies/-/tree/master/archlinux?ref_type=heads
Please submit a pull request there if you want this implemented.
archlinux/PKGBUILD.in
should be changed as follows:
# Note: This PKGBUILD is automatically generated by the scripts at https://cgit.kde.org/kdesdk-devenv-dependencies.git/
# Don't manually edit the PKGBUILD, edit the upstream template instead
pkgname=kde-development-environment-meta
pkgver=@PKGVER@
pkgrel=1
pkgdesc='Metapackage to install a full KDE development environment'
arch=(any)
url='https://phabricator.kde.org/T3722'
license=(LGPL)
optdepends=(@OPTDEPENDS@)
makedepends=()
source=(org.kde.development.appdata.xml kdesdk-devenv-dependencies.svg)
sha256sums=(@SHA256@)
noextract=()
package() {
depends+=(@DEPENDS@)
install -Dm644 org.kde.development.appdata.xml "$pkgdir"/usr/share/metainfo/org.kde.development.appdata.xml
install -Dm644 kdesdk-devenv-dependencies.svg "$pkgdir"/usr/share/icons/hicolor/scalable/apps/kdesdk-devenv-dependencies.svg
}
Edited by xi ota