setting install_prefix to /usr gives the same error.
It happens in package() and at the very end of the --install command .
Building with ninja instead of make also gives that error, maybe something in the sourcecode causes it .A few more comments :
Atleast cmake and git should be added to makedepends .
source=("$pkgname-$pkgver"::"git+ssh://github.com/wxWidgets/wxWidgets.git")
This will fail if the makepkg user doesn't have a valid ssh login configured.
Using git+https instead will retrieve a public read-only copy without needing user configuration.Incase you do want to stick with ssh access, add openssh to makedepends.
(adding a comment to the PKGBUILD that ssh access needs to be configured may also be useful)
Quite useful though I use it privately.
Thanks
The call in package() is probably not the issue since
Ignore the error, and do ln explicitly in package() can solve the problem.
It happens in package() and at the very end of the --install command .
Building with ninja instead of make also gives that error, maybe something in the sourcecode causes it .
A few more comments :
Atleast cmake and git should be added to makedepends .
source=("$pkgname-$pkgver"::"git+ssh://github.com/wxWidgets/wxWidgets.git")
This will fail if the makepkg user doesn't have a valid ssh login configured.
Using git+https instead will retrieve a public read-only copy without needing user configuration.
Incase you do want to stick with ssh access, add openssh to makedepends.
(adding a comment to the PKGBUILD that ssh access needs to be configured may also be useful)
Paste the PKGBUILD, a single line is useless: https://bbs.archlinux.org/viewtopic.php?id=57855
PKGBUILD all there now
]]>pkgname=wxgtk3-my
pkgver=3.1
pkgrel=1
arch=('x86_64')
url="https://wxwidgets.org"
license=('LGPL')
makedepends=('gst-plugins-base' 'glu' 'webkit2gtk' 'libnotify')
options=('strip')
source=("$pkgname-$pkgver"::"git+ssh://github.com/wxWidgets/wxWidgets.git")
sha256sums=('SKIP')
install_prefix="/usr/local"
build() {
cd "$pkgname-$pkgver"
cmake -S . \
-B out -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="$install_prefix" \
-DwxBUILD_INSTALL=ON \
-DwxBUILD_SHARED=ON
cmake --build out
}
package() {
pkgdesc='GTK+3 implementation of wxWidgets API for GUI'
depends=('gtk3' 'gst-plugins-base-libs' 'libsm' 'libxxf86vm' 'libnotify')
optdepends=('webkit2gtk: for webview support')
conflicts=('wxgtk<3.0.3.1-2' 'wxgtk3')
provides=('wxgtk3')
cd "$pkgname-$pkgver"
DESTDIR="$pkgdir/" cmake --install out
ln -s "$install_prefix/lib/wx/config/gtk3-unicode-3.1" "$pkgdir$install_prefix/bin/wx-config-gtk3"
ln -s "$install_prefix/bin/wxrc-3.1" "$pkgdir$install_prefix/bin/wxrc"
}
CMake Error: failed to create symbolic link '/usr/local/bin/wx-config': Permission denied
Ignore the error, and do ln explicitly in package() can solve the problem.
But better if no error reporting, because it's misleading, it might waste the time of a user of the PKGBUILD.
Any good solution?