makepkg: encode epoch in version specifier if > 0
commitb8ab96a270caa5d589c44c62d5664db156d94af7
authorDan McGee <dan@archlinux.org>
Fri, 21 Jan 2011 00:16:06 +0000 (20 18:16 -0600)
committerDan McGee <dan@archlinux.org>
Sat, 22 Jan 2011 16:02:09 +0000 (22 10:02 -0600)
treede59cb72422d3d4dca80cfa13d909dee9bedf994
parentbf46e04614b3740eea4a5e0d44767f57e1cffa4d
makepkg: encode epoch in version specifier if > 0

This makes things consistent with everywhere else we are incorporating the
new optional epoch field. Add a helper function that forms the version
string for you and use it in makepkg where I found 'pkgver.*-.*pkgrel'.

This exposes a few shortcomings in a previous "Override pkgver" patch
(2020e629) in the install package and check if built functions.

Signed-off-by: Dan McGee <dan@archlinux.org>
scripts/makepkg.sh.in