40 lines
1 KiB
Bash
40 lines
1 KiB
Bash
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
# Contributor: Thayne McCombs <astrothayne@gmail.com>
|
|
|
|
pkgname=dart-sass
|
|
pkgver=1.44.0
|
|
pkgrel=1
|
|
pkgdesc="Sass makes CSS fun again"
|
|
arch=('x86_64')
|
|
url='http://sass-lang.com/'
|
|
license=('MIT')
|
|
depends=('glibc')
|
|
makedepends=('dart')
|
|
options=('!strip')
|
|
provides=('sass')
|
|
conflicts=('ruby-sass')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz")
|
|
sha512sums=('117c42cd33a75fb3dd05248a2f50c929dbeda78962ad72a83a7d2c23ca886ebf9639ba036d32e9430bbe6fec8ec5cc648786ae64287dc2df6cf56a821d213604')
|
|
b2sums=('1c1a182191e47ed4f372f2eb744d97557eebbaff82b92dcfac6d1d36e0d602ad5198ebb59686d83fccf04355ef357ac59974a5c36f068f91d5f704027c3a8686')
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
# download dependencies
|
|
pub get
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname-$pkgver"
|
|
dart compile exe -Dversion=$pkgver -o sass bin/sass.dart
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
|
|
# binary
|
|
install -vDm755 -t "$pkgdir/usr/bin" sass
|
|
|
|
# license
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
}
|