Package Details: vlang-git r620.810e855-1

Git Clone URL: https://aur.archlinux.org/vlang-git.git (read-only)
Package Base: vlang-git
Description: Simple, fast, safe language created for developing maintainable software
Upstream URL: https://vlang.io
Keywords: language programming v vlang
Licenses: MIT
Conflicts: v, vlang
Submitter: whoami
Maintainer: MrAnno
Last Packager: whoami
Votes: 0
Popularity: 0.000000
First Submitted: 2019-06-22 17:56
Last Updated: 2019-07-17 22:13

Latest Comments

SpaceToast commented on 2019-07-16 01:58

Here's a patch1 against this repo that produces an optimized and functional v installation. It's also significantly simpler (install() is still awkward but it doesn't look like anyone cares). NOTE: using the Makefile there is fine because we already copied in v.c (making it an up-to-date target, as far as make is concerned).

whoami commented on 2019-06-30 17:07

V still not linux friendly, I'm waiting for changes (VROOT must be deleted from compiler/main.v). Plz use git clone https://github.com/vlang/v; cd v; make

izolight commented on 2019-06-29 19:48

compiling the compiler from the current dir doesn't seem to work with the c version (./vc -o v .), but doing it from a dir above works ./vc -o v compiler.

whoami commented on 2019-06-24 01:08

should be fixed. I'm crying

whoami commented on 2019-06-23 23:12

broken changes https://github.com/vlang/v/commit/b990f04064708fb9e16b1fc284c46a3a56bb7abd

alfonsodg commented on 2019-06-23 23:02

There is a problem with the package

/usr/lib/vlang not found. Run: git clone https://github.com/vlang/v ~/code/v ==> ERROR: Se produjo un fallo en build(). Cancelando... Error making: vlang-git

whoami commented on 2019-06-23 19:55

I've update it

jgmdev commented on 2019-06-23 18:31

Temporary fix for PKGBUILD

# Maintainer: whoami <whoami@systemli.org>

pkgname=vlang-git
pkgver=r44.4e24681
pkgrel=1
pkgdesc='Simple, fast, safe language created for developing maintainable software'
arch=('x86_64')
url='https://vlang.io'
license=('MIT')
depends=('glfw' 'libfreetype.so' 'libcurl.so')
conflicts=('v')
source=('git+https://github.com/vlang/v.git'
        'https://vlang.io/v.c')
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd "v"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd v

    curren_lib="$(pwd)"

    sed \
        "s|os__home_dir(), tos2(\"/code/v/\")|tos2(\"${curren_lib}\"), tos2(\"/\")|g" \
        ../v.c \
        > ./compiler/v.c

    cd compiler

    clang -w -o vc v.c

    sed -i \
        "s|mut lang_dir = os.home_dir() + '/code/v/'|mut lang_dir = '/usr/lib/v/'|g" \
        main.v

    ./vc -o v .
}

package() {
    cd "${srcdir}/v"
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
    install -Dm755 compiler/v "$pkgdir/usr/bin/v"
    install -d "$pkgdir/usr/lib/v"
    cp -a * "$pkgdir/usr/lib/v/"
    rm "$pkgdir/usr/lib/v/compiler/vc" "$pkgdir/usr/lib/v/compiler/v.c"
    cp "${srcdir}/v.c" "$pkgdir/usr/lib/v/compiler/v.c"
}

whoami commented on 2019-06-23 15:06

there is a hardcoded path '~/code/v', waiting for it to be fixed in the source