I believe AUR package managers already do that.
No, they don't usually.
Git Clone URL: | https://aur.archlinux.org/zeal-git.git (read-only, click to copy) |
---|---|
Package Base: | zeal-git |
Description: | Offline documentation browser |
Upstream URL: | https://zealdocs.org/ |
Keywords: | api dash docs docset documentation offline |
Licenses: | GPL3 |
Conflicts: | zeal |
Provides: | zeal |
Submitter: | 5long |
Maintainer: | trollixx |
Last Packager: | trollixx |
Votes: | 81 |
Popularity: | 0.000201 |
First Submitted: | 2013-06-29 09:47 (UTC) |
Last Updated: | 2024-09-08 17:12 (UTC) |
I believe AUR package managers already do that.
No, they don't usually.
@SpotlightKid I added provides
directive. As to the unclean build root issue, I don't think that is something package needs to address. People should ensure clean build, and I believe AUR package managers already do that.
The PKGBUILD is still missing provides=(${_appname})
.
Also, when not building in a clean chroot, CMake will built this app against Qt5 and then the dependencies will be broken.
Here's an improved PKGBUILD: https://cpaste.org/?59647808f770962e#3k98aJY6aKrPtBskmc8nDqJJ4n5vmtLLBbcC2n6U7tBj
@wpd I've never seen that issue. Do you happen to have default Git branch name set globally?
I added #branch=main
just in case.
I got a "fatal: Not a valid object name HEAD" ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version:
To fix it, add a #branch=main
to the git source
source=("${_appname}::git+https://github.com/zealdocs/${_appname}#branch=main")
I think some build dependencies are missing. I get the following error when trying to build the package:
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building unreleased code. Proceed at your own risk!
-- Found Git: /usr/bin/git (found version "2.41.0")
Calculated Zeal version: 0.6.2-dev.309+cee4e50
-- Installing in the same prefix as Qt, adopting their path scheme.
CMake Error at /usr/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package):
Could not find a package configuration file provided by "Qt5WebChannel"
with any of the following names:
Qt5WebChannelConfig.cmake
qt5webchannel-config.cmake
Add the installation prefix of "Qt5WebChannel" to CMAKE_PREFIX_PATH or set
"Qt5WebChannel_DIR" to a directory containing one of the above files. If
"Qt5WebChannel" provides a separate development package or SDK, be sure it
has been installed.
Call Stack (most recent call first):
src/libs/browser/CMakeLists.txt:13 (find_package)
EDIT: Installing qt5-webchannel
& qt5-webengine
made the build work.
The PKGBUILD
is missing provides=(${_appname})
. Without it, it won't satisfy the dependencies of packages depending on zeal
.
Something has changed with the upstream repo maybe? Fails to build:
Cloning into 'zeal'... done. warning: remote HEAD refers to nonexistent ref, unable to checkout ==> Starting pkgver()... fatal: Not a valid object name HEAD ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version: error: failed to build 'zeal-git-0.6.1.r271.g6c2160f-1': error: packages failed to build: zeal-git-0.6.1.r271.g6c2160f-1
Build fails due to opencl dependencies for me: https://pastebin.ubuntu.com/p/vHHtQJcB7s/. I have ocl-icd, opencl-headers, and opencl-mesa installed.
Thanks, this package works fine. The last stable version package zeal 0.6.1-3 still has qt5-webkit (AUR) as a dependency which takes hours to build. (This zeal-git package uses qt5-webengine instead).
Pinned Comments
trollixx commented on 2017-09-07 18:38 (UTC)