addpkg: dart-sass 1.43.5-1

This commit is contained in:
George Rawlinson 2021-11-25 06:38:40 +00:00
parent 8d9401b385
commit a48ee1ce95
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

38
dart-sass/PKGBUILD Normal file
View file

@ -0,0 +1,38 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Thayne McCombs <astrothayne@gmail.com>
pkgname=dart-sass
pkgver=1.43.5
pkgrel=1
pkgdesc="Sass makes CSS fun again"
arch=('x86_64')
url='http://sass-lang.com/'
license=('MIT')
makedepends=('dart')
options=('!strip')
provides=('sass')
conflicts=('ruby-sass')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz")
b2sums=('8b02eaab47bddd9466e55edfead40895833eb635616dfd4c30206e6bed12227a6ac2a19521be0a246ba9b8cdd5fd90b5c0f821446ce825f6ddd210fbd39965a1')
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
}