Package Details: coccigrep 1.21-3

Git Clone URL: https://aur.archlinux.org/coccigrep.git (read-only, click to copy)
Package Base: coccigrep
Description: Semantic grep for the C language based on coccinelle
Upstream URL: https://home.regit.org/software/coccigrep/
Licenses: GPL-3.0-only
Submitter: orumin
Maintainer: meadow
Last Packager: meadow
Votes: 3
Popularity: 0.80
First Submitted: 2016-06-01 15:43 (UTC)
Last Updated: 2025-11-15 19:10 (UTC)

Latest Comments

meadow commented on 2025-11-15 15:04 (UTC) (edited on 2025-11-15 19:11 (UTC) by meadow)

Thank you. I added your patch. Do you have an example how to use the zipman option? edit: the PKGBUILD respects zipman now

hurufu commented on 2025-11-14 07:58 (UTC) (edited on 2025-11-14 08:01 (UTC) by hurufu)

Hello, package doesn't build because manual was moved:

gzip: doc/_build/man/coccigrep.1: No such file or directory
==> ERROR: A failure occurred in package().
    Aborting...

Here is proposed patch

diff --git a/PKGBUILD b/PKGBUILD
index 78db6a6..6d110ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@

 pkgname=coccigrep
 pkgver=1.21
-pkgrel=1
+pkgrel=2
 pkgdesc='Semantic grep for the C language based on coccinelle'
 arch=('any')
 url='https://home.regit.org/software/coccigrep/'
@@ -27,8 +27,7 @@ package() {
     cd $pkgname-$pkgver
     python -m installer --destdir="$pkgdir" dist/*.whl

-    gzip -9 doc/_build/man/coccigrep.1
-    install -Dm644 doc/_build/man/coccigrep.1.gz -t $pkgdir/usr/rhhshare/man/man1/
+    install -Dm644 "$srcdir/coccigrep-$pkgver/coccigrep.1" -t $pkgdir/usr/share/man/man1/

     # Emacs modes
     install -Dm644 editors/cocci-grep.el -t $pkgdir/usr/share/emacs/site-lisp/

Also it is better to leave manpage compression as a user configurable option zipman in /etc/makepkg.conf

mfc_alpha commented on 2018-11-07 09:15 (UTC)

As it use coccinelle (with the spatch cmd), it may depends on it too ?