Package Details: visual-studio-code-insiders 1.25.0.1529644960-1

Git Clone URL: https://aur.archlinux.org/visual-studio-code-insiders.git (read-only)
Package Base: visual-studio-code-insiders
Description: Editor for building and debugging modern web and cloud applications (insiders version)
Upstream URL: https://code.visualstudio.com/
Licenses: custom: commercial
Provides: visualstudiocode, vscode
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 14
Popularity: 0.717534
First Submitted: 2016-11-22 07:44
Last Updated: 2018-06-24 06:30

Pinned Comments

dcelasun commented on 2016-11-22 07:48

IMPORTANT: This package always installs the latest insider build (see pkgver() function), so if you want daily updates, just run "makepkg -si" everyday and it will update. I won't be updating pkgver every single day.

Latest Comments

scippio commented on 2018-06-04 13:26

Ok... I downloaded via packer-color -S visual-studio-code-insiders -G and it's working now...

scippio commented on 2018-06-04 12:40

It's in clean directory:

ls -lah
total 16K
drwxr-xr-x 2 scippio scippio 4.0K Jun  4 14:39 .
drwxr-xr-x 3 scippio scippio 4.0K Jun  4 14:36 ..
-rw-r--r-- 1 scippio scippio 2.3K Jun  4 14:14 PKGBUILD
-rw-r--r-- 1 scippio scippio  397 Jun  4 14:15 visual-studio-code-insiders.desktop

dcelasun commented on 2018-06-04 12:35

Sorry, I can't reproduce. Can you try with a clean build directory, so it will download the file again instead of using the local one.

scippio commented on 2018-06-04 12:30

I think the problem is in pkgver():

$(curl -ILs -o /dev/null -w %{url_effective} https://vscode-update.azurewebsites.net/latest/linux-x64/insider); echo "${ADDR[5]}"
bash: https://az764295.vo.msecnd.net/insider/92754223624dcbe9aca0e5ca3ba8a53808b122b6/code-insider-1.24.0-1527860790_amd64.tar.gz: No such file or directory

scippio commented on 2018-06-04 12:25

$ cat PKGBUILD 

# Maintainer: D. Can Celasun <can[at]dcc[dot]im>

pkgname=visual-studio-code-insiders
pkgver=1.24.0.1527860790
pkgrel=1
pkgdesc="Editor for building and debugging modern web and cloud applications (insiders version)"
arch=('x86_64' 'i686')
url="https://code.visualstudio.com/"
license=('custom: commercial')
provides=('vscode' 'visualstudiocode')
depends=(fontconfig libxtst gtk2 python cairo alsa-lib gconf nss gcc-libs libnotify libxss gvfs)
source_x86_64=(code_x64_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-x64/insider
               ${pkgname}.desktop
               )
source_i686=(code_ia32_${pkgver}.tar.gz::https://vscode-update.azurewebsites.net/latest/linux-ia32/insider
              ${pkgname}.desktop
              )
sha256sums_x86_64=('SKIP'
                   '21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3')
sha256sums_i686=('SKIP'
                 '21ad1e09a7fd4f877485fc584c798b8f9ac953a97662562540b9b5009c86f1b3')
pkgver() {
    if [ "${CARCH}" = "x86_64" ]; then
        IFS='/' read -ra ADDR <<< $(curl -ILs -o /dev/null -w %{url_effective} https://vscode-update.azurewebsites.net/latest/linux-x64/insider); echo "${ADDR[5]}" | sed 's/code-insider-//g' | sed 
's/_amd64.tar.gz//g' | sed 's/-/./g'
    else
        IFS='/' read -ra ADDR <<< $(curl -ILs -o /dev/null -w %{url_effective} https://vscode-update.azurewebsites.net/latest/linux-ia32/insider); echo "${ADDR[5]}" | sed 's/code-insider-//g' | sed 
's/_i386.tar.gz//g' | sed 's/-/./g'
    fi
}
package() {
  _pkg=VSCode-linux-x64
  if [ "${CARCH}" = "i686" ]; then
    _pkg=VSCode-linux-ia32
  fi

  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -d "${pkgdir}/opt/${pkgname}"
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/share/icons" 

  install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${pkgname}.png"
  install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"

  cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${pkgname}" -R
  ln -s /opt/${pkgname}/bin/code-insiders "${pkgdir}"/usr/bin/code-insiders
}
$ makepkg -si

==> Making package: visual-studio-code-insiders 1.24.0.1527860790-1 (Mon Jun  4 14:23:06 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found code_x64_1.24.0.1527860790.tar.gz
  -> Found visual-studio-code-insiders.desktop
==> Validating source_x86_64 files with sha256sums...
    code_x64_1.24.0.1527860790.tar.gz ... Skipped
    visual-studio-code-insiders.desktop ... Passed
==> Extracting sources...
  -> Extracting code_x64_1.24.0.1527860790.tar.gz with bsdtar
==> Starting pkgver()...
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
  --follow-symlinks
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
  --posix
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
      --sandbox
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <https://www.gnu.org/software/sed/>.
General help using GNU software: <https://www.gnu.org/gethelp/>.
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 

dcelasun commented on 2018-06-04 12:21

You are most definitely doing something wrong. Can you share the exact steps (including downloading the package) you took?

scippio commented on 2018-06-04 12:18

I donwloaded latest PKGBUILD and get: ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version:

dcelasun commented on 2018-06-04 11:30

That's already fixed, update your PKGBUILD.

scippio commented on 2018-06-04 11:00

after upgrade of makepkg/pacman etc... :

==> ERROR: provides contains invalid characters: ','

dcelasun commented on 2018-06-02 17:13

Fixed, thanks.

All comments