diff options
author | Egor Kovetskiy | 2020-02-14 13:38:37 +0300 |
---|---|---|
committer | Egor Kovetskiy | 2020-02-14 13:38:37 +0300 |
commit | f0d8ac6ef2f487ed72ccc3f23bde6c3b2ef89363 (patch) | |
tree | 5ef8b5d936385c4342a9d5514534001b9d84fab5 | |
parent | 9cbe5fc1a4425b3941c695009cd2707e3b874ac3 (diff) | |
download | aur-f0d8ac6ef2f487ed72ccc3f23bde6c3b2ef89363.tar.gz |
atlassian-plugin-sdk-latest: fix downloading after fixed pkgver
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -22,21 +22,21 @@ pkgver() { _url=${_maven}/maven-metadata.xml echo ":: Obtaining latest version from maven-metadata.xml: ${_url}" >&2 - version=$(curl -sL "${_url}" | grep -Po '<latest>\K[^<]+' | sed -r 's/[-:]/./g') + version=$(curl -sL "${_url}" | grep -Po '<latest>\K[^<]+') - echo "${version}" + echo "${version}" | sed -r 's/[-:]/./g' } package() { cd "${srcdir}" - echo ":: Downloading $_maven/$pkgver/$_pkgname-$pkgver.tar.gz" >&2 - wget "$_maven/$pkgver/$_pkgname-$pkgver.tar.gz" - tar xvf "$_pkgname-$pkgver.tar.gz" + echo ":: Downloading $_maven/$version/$_pkgname-$version.tar.gz" >&2 + wget "$_maven/$version/$_pkgname-$version.tar.gz" + tar xvf "$_pkgname-$version.tar.gz" cd "$pkgdir" mkdir -p opt/atlassian/plugin-sdk - cp -r "$srcdir"/atlassian-plugin-sdk-$pkgver/* opt/atlassian/plugin-sdk + cp -r "$srcdir"/atlassian-plugin-sdk-$version/* opt/atlassian/plugin-sdk # remove executable flag from .bat in bin if [[ -n $(find opt/atlassian/plugin-sdk/apache-maven-*/bin/ -type f -name "*.bat") ]]; then |