Simplify PKGBUILD, remove update-script

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-02-17 12:07:10 +01:00
parent bcc51ed715
commit 1d924dec3e
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5
2 changed files with 7 additions and 63 deletions

View File

@ -1,5 +1,6 @@
# Maintainer: Sitansh Rajput <me [at] lostpolaris [dot] com>
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Maintainer: Knut Ahlers <knut@ahlers.me>
# Contributor: Sitansh Rajput <me [at] lostpolaris [dot] com>
# Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Michael Lutonsky <m@luto.at>
# Contributor: Tássio Virgínio <tassiovirginio@gmail.com>
@ -13,9 +14,9 @@ license=('MIT')
depends=('libappindicator-gtk3' 'libnotify' 'libsecret' 'libxss' 'libxslt' 'nodejs' 'nss' 'xdg-utils')
provides=(beekeeper-studio)
conflicts=(beekeeper-studio)
source=(beekeeper-studio-3.7.10-license::https://github.com/beekeeper-studio/beekeeper-studio/raw/v3.7.10/LICENSE.md)
source_x86_64=(https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v3.7.10/beekeeper-studio_3.7.10_amd64.deb)
source_aarch64=(https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v3.7.10/beekeeper-studio_3.7.10_arm64.deb)
source=("beekeeper-studio-${pkgver}-license::https://github.com/beekeeper-studio/beekeeper-studio/raw/v${pkgver}/LICENSE.md")
source_x86_64=("https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${pkgver}/beekeeper-studio_${pkgver}_amd64.deb")
source_aarch64=("https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${pkgver}/beekeeper-studio_${pkgver}_arm64.deb")
sha256sums=('1409fbbc5265c85da91684660c87f85d74c3fdc63a2d355169f40dac5cc7a078')
sha256sums_x86_64=('99151d1330e3d1432479ae9d0c72b052c9fe4194e6c9ccc85585eb897ac991fe')
sha256sums_aarch64=('5f1bb88074b17cf13c955567953a1bbfcc0498fb4209958c1422fc0882e5037c')
@ -27,6 +28,5 @@ package() {
ln -sfv "/opt/Beekeeper Studio/beekeeper-studio" -t "${pkgdir}/usr/bin"
install -Dvm644 "${pkgdir}/opt/Beekeeper Studio/"{'LICENSE.electron.txt','LICENSES.chromium.html'} \
-t "${pkgdir}/usr/share/licenses/beekeeper-studio"
install -Dvm644 "beekeeper-studio-3.7.10-license" "${pkgdir}/usr/share/licenses/beekeeper-studio/LICENSE"
install -Dvm644 "beekeeper-studio-${pkgver}-license" "${pkgdir}/usr/share/licenses/beekeeper-studio/LICENSE"
}

View File

@ -1,56 +0,0 @@
#! /bin/sh
set -xe
_name='Beekeeper Studio'
_pkgname='beekeeper-studio'
_url_source='https://github.com/beekeeper-studio/beekeeper-studio'
if [[ $# == 0 ]]; then
echo 'Usage: ./update.sh VERSION_NUMBER'
exit 1
fi
pkgrel=1
if [[ $# == 2 ]]; then
pkgrel=$2
fi
printf '' > PKGBUILD
echo "# Maintainer: Sitansh Rajput <me [at] lostpolaris [dot] com>
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>
# Contributor: Michael Lutonsky <m@luto.at>
# Contributor: Tássio Virgínio <tassiovirginio@gmail.com>
pkgname='${_pkgname}-bin'
pkgver=$1
pkgrel=1
pkgdesc='Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more'
arch=('x86_64' 'aarch64')
url='https://www.beekeeperstudio.io'
license=('MIT')
depends=('libappindicator-gtk3' 'libnotify' 'libsecret' 'libxss' 'libxslt' 'nodejs' 'nss' 'xdg-utils')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${_pkgname}-$1-license::${_url_source}/raw/v$1/LICENSE.md")
source_x86_64=("${_url_source}/releases/download/v$1/${_pkgname}_$1_amd64.deb")
source_aarch64=("${_url_source}/releases/download/v$1/${_pkgname}_$1_arm64.deb")
sha256sums=()
sha256sums_x86_64=()
sha256sums_aarch64=()
package() {
tar -xvf 'data.tar.xz' -C \"\${pkgdir}\"
rm -rf \"\${pkgdir}/usr/share/doc\"
install -dv \"\${pkgdir}/usr/bin\"
ln -sfv \"/opt/${_name}/${_pkgname}\" -t \"\${pkgdir}/usr/bin\"
install -Dvm644 \"\${pkgdir}/opt/${_name}/\"{'LICENSE.electron.txt','LICENSES.chromium.html'} \\
-t \"\${pkgdir}/usr/share/licenses/${_pkgname}\"
install -Dvm644 \"${_pkgname}-$1-license\" \"\${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE\"
}
" >> PKGBUILD
updpkgsums
makepkg --printsrcinfo > .SRCINFO
# Test
makepkg -f