On Tue, 03 Jun 2008 01:56:49 +1000
Allan McRae
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
#!/bin/bash
# Script for making source tarballs
# $1 = directory name
# $2 = release version
if [ "$1" == "" ]; then
echo "Usage: $0