Refactor source license download

This commit is contained in:
caltlgin 2020-11-25 06:37:59 +13:00
parent 2fa96d1c23
commit 1c6494ccfb
No known key found for this signature in database
GPG key ID: D680A35344A939AC
3 changed files with 4 additions and 7 deletions

View file

@ -16,7 +16,7 @@ pkgbase = beekeeper-studio-bin
depends = xdg-utils depends = xdg-utils
provides = beekeeper-studio provides = beekeeper-studio
conflicts = beekeeper-studio conflicts = beekeeper-studio
source = beekeeper-studio-license-5c3257cf1989ca38b651a9dad77d81ace18961de::https://github.com/beekeeper-studio/beekeeper-studio/raw/5c3257cf1989ca38b651a9dad77d81ace18961de/LICENSE.md source = beekeeper-studio-1.8.11-license::https://github.com/beekeeper-studio/beekeeper-studio/raw/v1.8.11/LICENSE.md
sha256sums = 787ebc78ce29cd0cea3e52651936df7fef96b117782882fce389c3b7ce5683f5 sha256sums = 787ebc78ce29cd0cea3e52651936df7fef96b117782882fce389c3b7ce5683f5
source_x86_64 = https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v1.8.11/beekeeper-studio_1.8.11_amd64.deb source_x86_64 = https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v1.8.11/beekeeper-studio_1.8.11_amd64.deb
sha256sums_x86_64 = e42b7996a84095a365ccc453423fa39ee7dc3283967444b8f70e0095024feacf sha256sums_x86_64 = e42b7996a84095a365ccc453423fa39ee7dc3283967444b8f70e0095024feacf

View file

@ -4,11 +4,8 @@
_name='Beekeeper Studio' _name='Beekeeper Studio'
_pkgname='beekeeper-studio' _pkgname='beekeeper-studio'
pkgname="${_pkgname}-bin" pkgname="${_pkgname}-bin"
pkgver=1.8.11 pkgver=1.8.11
pkgrel=1 pkgrel=1
_commit_license='5c3257cf1989ca38b651a9dad77d81ace18961de'
pkgdesc='Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more' pkgdesc='Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more'
arch=('x86_64' 'aarch64') arch=('x86_64' 'aarch64')
url='https://www.beekeeperstudio.io' url='https://www.beekeeperstudio.io'
@ -18,7 +15,7 @@ depends=('libappindicator-gtk3' 'libnotify' 'libsecret' 'libxss' 'libxslt' 'node
provides=("${_pkgname}") provides=("${_pkgname}")
conflicts=("${_pkgname}") conflicts=("${_pkgname}")
source=("${_pkgname}-license-${_commit_license}::${_url_source}/raw/${_commit_license}/LICENSE.md") source=("${_pkgname}-${pkgver}-license::${_url_source}/raw/v${pkgver}/LICENSE.md")
source_x86_64=("${_url_source}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb") source_x86_64=("${_url_source}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_amd64.deb")
source_aarch64=("${_url_source}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_arm64.deb") source_aarch64=("${_url_source}/releases/download/v${pkgver}/${_pkgname}_${pkgver}_arm64.deb")
@ -33,7 +30,7 @@ package() {
ln -sfv "/opt/${_name}/${_pkgname}" -t "${pkgdir}/usr/bin" ln -sfv "/opt/${_name}/${_pkgname}" -t "${pkgdir}/usr/bin"
install -Dvm644 "${pkgdir}/opt/${_name}/"{'LICENSE.electron.txt','LICENSES.chromium.html'} \ install -Dvm644 "${pkgdir}/opt/${_name}/"{'LICENSE.electron.txt','LICENSES.chromium.html'} \
-t "${pkgdir}/usr/share/licenses/${_pkgname}" -t "${pkgdir}/usr/share/licenses/${_pkgname}"
install -Dvm644 "${_pkgname}-license-${_commit_license}" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" install -Dvm644 "${_pkgname}-${pkgver}-license" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
} }
# vim: ts=2 sw=2 et: # vim: ts=2 sw=2 et: