Package Details: dart-sdk-dev 3.7.0_164.0.dev-1

Git Clone URL: https://aur.archlinux.org/dart-sdk-dev.git (read-only, click to copy)
Package Base: dart-sdk-dev
Description: The official Dart sdk from dart-lang project (Development branch)
Upstream URL: https://www.dartlang.org/tools/sdk/archive
Keywords: dart dart-sdk dart-sdk-dev dart2 dartlang flutter
Licenses: custom
Conflicts: dart
Provides: dart
Submitter: KlarkKable
Maintainer: KlarkKable
Last Packager: KlarkKable
Votes: 11
Popularity: 0.020504
First Submitted: 2018-04-19 09:11 (UTC)
Last Updated: 2024-11-22 00:02 (UTC)

Dependencies (1)

Required by (41)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

KlarkKable commented on 2018-09-02 07:43 (UTC)

@Pixys this is probably not the most elegant solution, but a quick fix is just deleting the dart-sdk-dev directory under $USER/.cache/aurman

Pixys commented on 2018-09-02 07:21 (UTC)

Hello,

Trying to update aur/dart-sdk-dev from 2.0.0_dev.63.0-1 to 2.1.0_dev.3.0-1, I face the following error :

==> Validating source files with sha256sums...
    dartsdk-linux-x64-release.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
2018-09-02 15:14:05,228 - wrappers - makepkg - ERROR - makepkg query ['makepkg', '-cf', '--noconfirm'] failed in directory /$USER/.cache/aurman/dart-sdk-dev

Any trick to solve this?

Thanks for your help!

Ogromny commented on 2018-08-21 01:05 (UTC)

For actual last version:

pkgver=2.1.0_dev.1.0 sha256sums=("b97f967fbdb0d677702a9e51deeb697b3086496e3e69ff7b815e213c2f9a181d")

AnLog commented on 2018-08-08 22:37 (UTC) (edited on 2018-08-08 23:17 (UTC) by AnLog)

provides=('dart') HAS to be ("dart=$pkgver") for other packages to be able to require a certain version. I was trying to make a package that required >=1.25.0 but it didn't work and I didn't know why. Apparently for that to work you have to include the pkgver in your provides variable.

There's another issue with the PKGBUILD that was brought to my attention and explained by eschwartz on the #archlinux-aur. ln -s /opt/$pkgname/bin/* $pkgdir/usr/bin/ apparently isn't correct? Check the PKGBUILD of the dart package to see the way they do it: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/dart#n49

Alternatively, just use something like this. this:

for f in "$pkgdir"/opt/$pkgname/bin/*; do 
    ln -s /opt/$pkgname/bin/${f##*/} "$pkgdir"/usr/bin/
done

This should work, it did on my machine. A pastebin of the edited PKGBUILD I used: https://paste.debian.net/1037207

I've tried to understand why that way of making a link is wrong but I'm still a little shaky on it. As far as I understood if you don't have any pre-existing install /opt/$pkgname/bin/* is empty and won't expand to anything. This is what I think lead to me having an unknown command error when calling pub get the first time I got this package. By using the for loop that way you will enumerate over the files in the pkgdir where they actually exist and creating the links correctly.

close2 commented on 2018-06-25 09:28 (UTC)

there is an incorrect symbolic link in /usr/bin

ls /usr/bin/* -l lrwxrwxrwx 1 root root 23 Jun 22 11:18 '/usr/bin/' -> '/opt/dart-sdk-dev/bin/'

KlarkKable commented on 2018-06-17 16:02 (UTC)

@morealaz Forgive my ignorance. I appreciate the help! Should reflect the version properly from now on. I also added the provides=('dart') for you.

<deleted-account> commented on 2018-06-16 10:07 (UTC)

@KlarkKable: please add provides=('dart') to PKGBUILD.

<deleted-account> commented on 2018-06-16 10:04 (UTC)

@KlarkKable: you must update .SRCINFO file every time you update package, in order to reflect changes in AUR. use following command in your build directory to generate and update it:

$ makepkg --printsrcinfo > .SRCINFO

and do not forget to add it to git index:

$ git add .SRCINFO

KlarkKable commented on 2018-06-16 06:54 (UTC)

@MatthewArredondo I would change it if I could. The string replacement I am doing in the sources definition of the PKGBUILD should have updated it automatically (from what I understand). If someone would like to point out how to do so, I would be more than happy to fix it.