[pacman-dev] [PATCH] makepkg: add --allsource option
louipc.ist at gmail.com
Mon Jun 2 18:09:59 EDT 2008
On Tue, 03 Jun 2008 01:56:49 +1000
Allan McRae <mcrae_allan at hotmail.com> wrote:
> Dan McGee wrote:
> > While we are making changes, can you see an easy way to get everything
> > under a pkgname/ dir (maybe with pkgver-pkgrel too) inside the
> > tarball? Unfortunately bsdtar has no --prefix option to easily do
> > this, and our friend Loui says it is doable but has not offered a line
> > of code.
> I think that is along the lines of what Loui was suggesting. It also
> removes the whole -C issue without adding any further SOURCEONLY=2 checks.
I can't quite grok the makepkg source code so I'll just demonstrate
what I do via a lil script. Enjoy! :D
# Script for making source tarballs
# $1 = directory name
# $2 = release version
if [ "$1" == "" ]; then
echo "Usage: $0 <directory_name> <release_version>"
echo "Creating temporary symlink $1-$2"
ln -s $1 $1-$2
tar -cvvzf $1-$2.tar.gz $(find $1-$2/ -type f)
echo "Removing symlink $1-$2"
More information about the pacman-dev