blob: 800fc5a1b41c16b0adcdeebd365ff3b2ed25f922 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#Maintainer: KlarkKable <KlarkKable at protonmail dot com>
pkgname=dart-sdk-dev
pkgver=3.7.0_164.0.dev
pkgrel=1
pkgdesc="The official Dart sdk from dart-lang project (Development branch)"
arch=('x86_64')
url="https://www.dartlang.org/tools/sdk/archive"
license=('custom')
depends=('unzip')
conflicts=('dart')
provides=('dart=$pkgver')
source=(dartsdk-linux-x64-release-${pkgver}.zip::"https://storage.googleapis.com/dart-archive/channels/dev/release/${pkgver//_/-}/sdk/dartsdk-linux-x64-release.zip")
sha256sums=('956ff6647742033de387e9b194e871f7daa649cb377b457bbe07d6664ae3abb0')
package() {
# Uncompressed name is "dart-sdk" not "dart-sdk-dev"
cd $srcdir/dart-sdk
# Install Application
install -d $pkgdir/{opt/$pkgname,usr/bin}
cp -a . $pkgdir/opt/$pkgname
for f in "$pkgdir"/opt/$pkgname/bin/*; do
ln -s /opt/$pkgname/bin/${f##*/} "$pkgdir"/usr/bin/
done
chmod -R ugo+rX $pkgdir/opt
}
|