leah blogs

July 2013

17jul2013 · Summer of Scripts: pacsrc

pacsrc is probably my most used Arch helper script: it parses the build description for a package (the PKGBUILD) and outputs the sources used. I often use this when I want to look at the source code of some tool.

% pacsrc zsh
# http://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/zsh
http://downloads.sourceforge.net/zsh/zsh-5.0.2.tar.bz2
http://projects.archlinux.org/svntogit/packages.git/plain/trunk/zprofile?h=packages/zsh

The first line is the link to the PKGBUILD, if I want to look up how it’s configured and compiled. The other lines are the sources used, so fetching the tarball is just a simple wget away.

NP: Temple Of The Dog—Wooden Jesus

Copyright © 2004–2022