mirror of
https://github.com/archlinux/aur.git
synced 2025-12-10 08:05:42 +01:00
[visual-studio-code-insiders-bin] Bump pkgrel to 3
[skip ci]
This commit is contained in:
parent
0722fe2297
commit
94d507aa18
5 changed files with 103 additions and 38 deletions
26
.SRCINFO
26
.SRCINFO
|
|
@ -1,8 +1,9 @@
|
|||
pkgbase = visual-studio-code-insiders-bin
|
||||
pkgdesc = Editor for building and debugging modern web and cloud applications (insiders version)
|
||||
pkgdesc = Visual Studio Code Insiders (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
|
||||
pkgver = 1748236978
|
||||
pkgrel = 2
|
||||
pkgrel = 3
|
||||
url = https://code.visualstudio.com/
|
||||
install = visual-studio-code-insiders-bin.install
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
arch = armv7h
|
||||
|
|
@ -17,16 +18,25 @@ pkgbase = visual-studio-code-insiders-bin
|
|||
depends = libxss
|
||||
depends = glibc
|
||||
depends = lsof
|
||||
depends = shared-mime-info
|
||||
depends = xdg-utils
|
||||
depends = alsa-lib
|
||||
optdepends = glib2: Needed for move to trash functionality
|
||||
optdepends = libdbusmenu-glib: Needed for KDE global menu
|
||||
provides = vscode
|
||||
optdepends = org.freedesktop.secrets: Needed for settings sync
|
||||
optdepends = icu69: Needed for live share
|
||||
provides = code-insiders
|
||||
provides = vscode-insiders
|
||||
conflicts = code-insiders
|
||||
options = !strip
|
||||
source = visual-studio-code-insiders.desktop
|
||||
source = visual-studio-code-insiders-url-handler.desktop
|
||||
source = code-1748236978.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code.desktop
|
||||
source = code-1748236978-url-handler.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code-url-handler.desktop
|
||||
source = code-1748236978-workspace.xml.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code-workspace.xml
|
||||
source = visual-studio-code-insiders-bin.sh
|
||||
sha256sums = 381bcf5644e7fba645537215f5d488b25fc9ee1509d19226f031071a6abb3bdd
|
||||
sha256sums = b961802b4f27ae8f871f64a1435dd93ee17fc72f78137bf6cc3f6aa1b107105d
|
||||
sha256sums = 44c99cf30f0ae3ea32c6176b86265cf6c8044de4497b6b45b0c912b5ad5b004c
|
||||
sha256sums = 2f1782b30c4e040efff655fd9cf477930c5a0c81ddae27749b0cbb922c1d248e
|
||||
sha256sums = c361efa7e02fcad759ed80d2fbab67877f33219b981578af6fffaf18aeb12d9b
|
||||
sha256sums = 3af748dd6578a1775e8eb7248ba397b7e11840df2ea6ee234ff76fee3dc306cf
|
||||
sha256sums = 4ba4e7bb90c05089a2aed7e1fbfade57f6878aebe8c3166c82dcaefc45141372
|
||||
source_x86_64 = code_x64_1748236978.tar.gz::https://vscode.download.prss.microsoft.com/dbazure/download/insider/87d1648dbf341e534dadb49b3c4e313f29ebd551/code-insider-x64-1748236978.tar.gz
|
||||
sha256sums_x86_64 = 8d7586858b32dd5fc1192dc166f5ffe44b74abf9f82346f6273bc5ca2d9eae09
|
||||
source_aarch64 = code_arm64_1748237279.tar.gz::https://vscode.download.prss.microsoft.com/dbazure/download/insider/87d1648dbf341e534dadb49b3c4e313f29ebd551/code-insider-arm64-1748237279.tar.gz
|
||||
|
|
|
|||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/*.in
|
||||
87
PKGBUILD
87
PKGBUILD
|
|
@ -1,53 +1,82 @@
|
|||
# Maintainer: D. Can Celasun <can[at]dcc[dot]im>
|
||||
|
||||
pkgname=visual-studio-code-insiders-bin
|
||||
_pkgname=visual-studio-code-insiders
|
||||
pkgver=1748236978
|
||||
pkgrel=2
|
||||
pkgdesc="Editor for building and debugging modern web and cloud applications (insiders version)"
|
||||
pkgrel=3
|
||||
pkgdesc="Visual Studio Code Insiders (vscode): Editor for building and debugging modern web and cloud applications (official binary version)"
|
||||
arch=('x86_64' 'aarch64' 'armv7h')
|
||||
url="https://code.visualstudio.com/"
|
||||
license=('custom: commercial')
|
||||
# lsof: need for terminal splitting, see https://github.com/Microsoft/vscode/issues/62991
|
||||
depends=(libxkbfile gnupg gtk3 libsecret nss gcc-libs libnotify libxss glibc lsof)
|
||||
optdepends=('glib2: Needed for move to trash functionality'
|
||||
'libdbusmenu-glib: Needed for KDE global menu')
|
||||
provides=(vscode)
|
||||
provides=('code-insiders' 'vscode-insiders')
|
||||
conflicts=('code-insiders')
|
||||
# Upstream has signature verification for extensions and stripping breaks it
|
||||
# See https://github.com/microsoft/vscode/issues/223455#issuecomment-2610001754
|
||||
options=(!strip)
|
||||
|
||||
source=(${_pkgname}.desktop ${_pkgname}-url-handler.desktop ${_pkgname}-bin.sh)
|
||||
install=$pkgname.install
|
||||
# lsof: needed for terminal splitting, see https://github.com/Microsoft/vscode/issues/62991
|
||||
# xdg-utils: needed for opening web links with xdg-open
|
||||
depends=(libxkbfile gnupg gtk3 libsecret nss gcc-libs libnotify libxss glibc lsof shared-mime-info xdg-utils alsa-lib)
|
||||
optdepends=('glib2: Needed for move to trash functionality'
|
||||
'libdbusmenu-glib: Needed for KDE global menu'
|
||||
'org.freedesktop.secrets: Needed for settings sync'
|
||||
# See https://github.com/MicrosoftDocs/live-share/issues/4650
|
||||
'icu69: Needed for live share' )
|
||||
source=(code-${pkgver}.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code.desktop
|
||||
code-${pkgver}-url-handler.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code-url-handler.desktop
|
||||
code-${pkgver}-workspace.xml.in::https://raw.githubusercontent.com/microsoft/vscode/master/resources/linux/code-workspace.xml
|
||||
${_pkgname}-bin.sh)
|
||||
source_x86_64=(code_x64_1748236978.tar.gz::https://vscode.download.prss.microsoft.com/dbazure/download/insider/87d1648dbf341e534dadb49b3c4e313f29ebd551/code-insider-x64-1748236978.tar.gz)
|
||||
source_aarch64=(code_arm64_1748237279.tar.gz::https://vscode.download.prss.microsoft.com/dbazure/download/insider/87d1648dbf341e534dadb49b3c4e313f29ebd551/code-insider-arm64-1748237279.tar.gz)
|
||||
source_armv7h=(code_armhf_1748237389.tar.gz::https://vscode.download.prss.microsoft.com/dbazure/download/insider/87d1648dbf341e534dadb49b3c4e313f29ebd551/code-insider-armhf-1748237389.tar.gz)
|
||||
|
||||
sha256sums=('381bcf5644e7fba645537215f5d488b25fc9ee1509d19226f031071a6abb3bdd'
|
||||
'b961802b4f27ae8f871f64a1435dd93ee17fc72f78137bf6cc3f6aa1b107105d'
|
||||
'44c99cf30f0ae3ea32c6176b86265cf6c8044de4497b6b45b0c912b5ad5b004c')
|
||||
sha256sums=('2f1782b30c4e040efff655fd9cf477930c5a0c81ddae27749b0cbb922c1d248e'
|
||||
'c361efa7e02fcad759ed80d2fbab67877f33219b981578af6fffaf18aeb12d9b'
|
||||
'3af748dd6578a1775e8eb7248ba397b7e11840df2ea6ee234ff76fee3dc306cf'
|
||||
'4ba4e7bb90c05089a2aed7e1fbfade57f6878aebe8c3166c82dcaefc45141372')
|
||||
sha256sums_x86_64=('8d7586858b32dd5fc1192dc166f5ffe44b74abf9f82346f6273bc5ca2d9eae09')
|
||||
sha256sums_aarch64=('7dcb81e0ead894421a284fb1219f6ad29648e1044876d5456b06359a771d5bcc')
|
||||
sha256sums_armv7h=('938e1e2c06b695a5f618671c4fbac7a6168b30e69e68434c46c4b23a0ac1efa8')
|
||||
|
||||
package() {
|
||||
_pkg=VSCode-linux-x64
|
||||
if [ "${CARCH}" = "aarch64" ]; then
|
||||
_pkg=VSCode-linux-arm64
|
||||
fi
|
||||
if [ "${CARCH}" = "armv7h" ]; then
|
||||
_pkg=VSCode-linux-armhf
|
||||
fi
|
||||
if [ "${CARCH}" = "i686" ]; then
|
||||
_pkg=VSCode-linux-ia32
|
||||
fi
|
||||
_set_meta_info() {
|
||||
sed 's/@@NAME_LONG@@/Visual Studio Code Insiders/g' "$1" |\
|
||||
sed 's/@@NAME_SHORT@@/code - insiders/g' |\
|
||||
sed 's/@@NAME@@/code/g' |\
|
||||
sed 's#@@EXEC@@#/usr/bin/code-insiders#g' |\
|
||||
sed 's/@@ICON@@/visual-studio-code-insiders/g' |\
|
||||
sed 's/@@URLPROTOCOL@@/vscode-insiders/g'
|
||||
}
|
||||
|
||||
install -d "${pkgdir}/usr/share/"{licenses/${_pkgname},applications,pixmaps}
|
||||
prepare() {
|
||||
_set_meta_info "${srcdir}/code-${pkgver}.desktop.in" > "${srcdir}/code.desktop"
|
||||
_set_meta_info "${srcdir}/code-${pkgver}-url-handler.desktop.in" > "${srcdir}/code-url-handler.desktop"
|
||||
_set_meta_info "${srcdir}/code-${pkgver}-workspace.xml.in" > "${srcdir}/code-workspace.xml"
|
||||
}
|
||||
|
||||
_pkg() {
|
||||
if [ "${CARCH}" = "aarch64" ]; then
|
||||
echo 'VSCode-linux-arm64'
|
||||
elif [ "${CARCH}" = "armv7h" ]; then
|
||||
echo 'VSCode-linux-armhf'
|
||||
else
|
||||
echo 'VSCode-linux-x64'
|
||||
fi
|
||||
}
|
||||
|
||||
package() {
|
||||
install -d "${pkgdir}/opt/${_pkgname}"
|
||||
install -d "${pkgdir}/usr/bin"
|
||||
install -d "${pkgdir}/usr/share/"{applications,pixmaps,mime/packages,licenses/${_pkgname}}
|
||||
|
||||
install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.rtf" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.rtf"
|
||||
install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
|
||||
install -m644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
|
||||
install -m644 "${srcdir}/${_pkgname}-url-handler.desktop" "${pkgdir}/usr/share/applications/${_pkgname}-url-handler.desktop"
|
||||
install -m644 "${srcdir}/$(_pkg)/resources/app/LICENSE.rtf" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE.rtf"
|
||||
install -m644 "${srcdir}/$(_pkg)/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
|
||||
install -m644 "${srcdir}/code.desktop" "${pkgdir}/usr/share/applications/code-insiders.desktop"
|
||||
install -m644 "${srcdir}/code-url-handler.desktop" "${pkgdir}/usr/share/applications/code-insiders-url-handler.desktop"
|
||||
install -m644 "${srcdir}/code-workspace.xml" "${pkgdir}/usr/share/mime/packages/${_pkgname}-insiders-workspace.xml"
|
||||
install -Dm 644 "${srcdir}/$(_pkg)/resources/completions/bash/code-insiders" "${pkgdir}/usr/share/bash-completion/completions/code-insiders"
|
||||
install -Dm 644 "${srcdir}/$(_pkg)/resources/completions/zsh/_code-insiders" "${pkgdir}/usr/share/zsh/site-functions/_code-insiders"
|
||||
|
||||
cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${_pkgname}" -R
|
||||
cp -r "${srcdir}/$(_pkg)/"* "${pkgdir}/opt/${_pkgname}"
|
||||
|
||||
# Launcher
|
||||
install -m755 "${srcdir}/${_pkgname}-bin.sh" "${pkgdir}/usr/bin/code-insiders"
|
||||
|
|
|
|||
23
visual-studio-code-insiders-bin.install
Normal file
23
visual-studio-code-insiders-bin.install
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Colored makepkg-like functions
|
||||
msg_blue() {
|
||||
printf "${blue}==>${bold} $1${all_off}\n"
|
||||
}
|
||||
|
||||
note() {
|
||||
printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n"
|
||||
}
|
||||
|
||||
all_off="$(tput sgr0)"
|
||||
bold="${all_off}$(tput bold)"
|
||||
blue="${bold}$(tput setaf 4)"
|
||||
yellow="${bold}$(tput setaf 3)"
|
||||
|
||||
post_install() {
|
||||
note "Custom flags should be put directly in: ~/.config/code-insiders-flags.conf"
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
note "Custom flags can now be put directly in: ~/.config/code-insiders-flags.conf"
|
||||
note "This is to support separate flags for insiders and stable versions."
|
||||
note "~/.config/code-flags.conf is still supported for both versions."
|
||||
}
|
||||
|
|
@ -3,7 +3,9 @@
|
|||
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
|
||||
|
||||
# Allow users to override command-line options
|
||||
if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
|
||||
if [[ -f $XDG_CONFIG_HOME/code-insiders-flags.conf ]]; then
|
||||
CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-insiders-flags.conf | tr '\n' ' ')"
|
||||
elif [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
|
||||
CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue