diff options
author | Thayne McCombs | 2018-09-10 00:23:18 -0600 |
---|---|---|
committer | Thayne McCombs | 2018-09-10 00:27:36 -0600 |
commit | e147c5e27b35e79a9813f9e7fc1b0aff2421c1fe (patch) | |
tree | cf27a2677f06c9a8ef5768e1c8e8c1f01a912a0b | |
download | aur-e147c5e27b35e79a9813f9e7fc1b0aff2421c1fe.tar.gz |
Initial
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 34 | ||||
-rwxr-xr-x | sass.sh | 3 |
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fd868a47c7f6 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = dart-sass + pkgdesc = Sass makes CSS fun again (canonical implementation) + pkgver = 1.13.2 + pkgrel = 1 + url = http://sass-lang.com/ + arch = any + license = MIT + depends = dart + depends = bash + provides = sass + conflicts = ruby-sass + source = https://github.com/sass/dart-sass/archive/1.13.2.tar.gz + source = sass.sh + sha256sums = aa5932532c5f93273a9d6ad4db46a737116f8ba7d3f11646b94db1774e63ce3a + sha256sums = 14c6034f43b2577ef4779ed4e8e6c539fb6f8f7ffdb0147bfe9d501e08cf88e7 + +pkgname = dart-sass + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..1afc24c292ab --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pkg +/src +*.gz +*.xz diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..91da6c0d52c9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Thayne McCombs <astrothayne@gmail.com> +pkgname=dart-sass +pkgver=1.13.2 +pkgrel=1 +pkgdesc="Sass makes CSS fun again (canonical implementation)" +arch=(any) +url="http://sass-lang.com/" +license=('MIT') +depends=(dart bash) +provides=('sass') +conflicts=('ruby-sass') +source=("https://github.com/sass/$pkgname/archive/$pkgver.tar.gz" "sass.sh") +sha256sums=('aa5932532c5f93273a9d6ad4db46a737116f8ba7d3f11646b94db1774e63ce3a' + '14c6034f43b2577ef4779ed4e8e6c539fb6f8f7ffdb0147bfe9d501e08cf88e7') + +build() { + cd "$pkgname-$pkgver" + pub get + # Create snapshot + # This doesn't use the grinder script so it is compatible with dart 2 + dart --snapshot=sass.snapshot --snapshot-kind=app-jit bin/sass.dart tool/app-snapshot-input.scss > /dev/null +} + +package() { + install -D -m755 sass.sh "$pkgdir/usr/bin/sass" + cd "$pkgname-$pkgver" + install -D -m644 sass.snapshot "$pkgdir/usr/lib/sass/app.snapshot" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/sass.sh b/sass.sh new file mode 100755 index 000000000000..f41e04fb8500 --- /dev/null +++ b/sass.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +/usr/bin/dart /usr/lib/sass/app.snapshot |