blob: 5e484d3adf5b7e576843447b0c4618f5ec553f5a (
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.4.0_204.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=('4ddac5c6311d3dddc24eeeb9d3e2b5d97a699cff6cc4f281761bcd5673d8399f')
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
}
|