[pacman-dev] [PATCH] makepkg: Move .PKGINFO creation into a function.
Loui Chang
louipc.ist at gmail.com
Mon Jun 22 07:55:58 EDT 2009
On Mon 22 Jun 2009 17:15 +1000, Allan McRae wrote:
> Thanks pushed to my working branch with a couple of minor changes:
>
> diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
> index 2140ff0..2bb7eb9 100644
> --- a/scripts/makepkg.sh.in
> +++ b/scripts/makepkg.sh.in
> @@ -880,14 +880,13 @@ write_pkginfo() {
> fi
> local size=$(du -sk | awk '{print $1 * 1024}')
>
> - # write the .PKGINFO file
> msg2 "$(gettext "Generating .PKGINFO file...")"
> echo "# Generated by makepkg $myver" >.PKGINFO
> if [ "$INFAKEROOT" -eq 1 ]; then
> echo "# using $(fakeroot -v)" >>.PKGINFO
> fi
> echo "# $(LC_ALL=C date -u)" >>.PKGINFO
> - echo "pkgname = $nameofpkg" >>.PKGINFO
> + echo "pkgname = $1" >>.PKGINFO
> echo "pkgver = $pkgver-$pkgrel" >>.PKGINFO
> echo "pkgdesc = $pkgdesc" >>.PKGINFO
> echo "url = $url" >>.PKGINFO
Cheers!
More information about the pacman-dev
mailing list