diff options
author | Einhard Leichtfuß <alguien@respiranto.de> | 2018-03-31 23:17:21 +0200 |
---|---|---|
committer | Einhard Leichtfuß <alguien@respiranto.de> | 2018-03-31 23:17:21 +0200 |
commit | 82c373e3e69d4cf028dbad4896129991c8e963c4 (patch) | |
tree | f83fb13c01402a6e701ffa45b26047a9f62be584 | |
parent | 78414340e45cac927015f0aacc6c2ec04b513a48 (diff) |
Add %VER% to svn/sample.PKGBUILD
-rw-r--r-- | svn/sample.PKGBUILD | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svn/sample.PKGBUILD b/svn/sample.PKGBUILD index c15da54..8f1f690 100644 --- a/svn/sample.PKGBUILD +++ b/svn/sample.PKGBUILD @@ -3,7 +3,7 @@ _lang=%LANG% _pkgname=dict-freedict-${_lang} pkgname=${_pkgname}-svn -pkgver=r0 +pkgver=%VER% _pkgver=${pkgver//_/-} pkgrel=1 pkgdesc="%LANG_A% -> %LANG_B% dictionary for dictd et al. from Freedict.org" @@ -20,7 +20,7 @@ md5sums=('SKIP') pkgver() { - cd ${_lang} + cd $_lang local _ver="$(svnversion)" printf "r%s" "${_ver//[[:alpha:]]}" } |