arch-pkgs/dart-sass/PKGBUILD

41 lines
1 KiB
Text
Raw Normal View History

2021-11-25 06:38:40 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
# Contributor: Thayne McCombs <astrothayne@gmail.com>
pkgname=dart-sass
pkgver=1.45.0
2021-11-25 06:38:40 +00:00
pkgrel=1
pkgdesc="Sass makes CSS fun again"
arch=('x86_64')
url='http://sass-lang.com/'
license=('MIT')
depends=('glibc')
2021-11-25 06:38:40 +00:00
makedepends=('dart')
options=('!strip')
provides=('sass')
conflicts=('ruby-sass')
source=("$pkgname-$pkgver.tar.gz::https://github.com/sass/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('c4c2de3592780cfc7c7a9ea468e8e05c082521fbfd80c5e93716ed5443bb144b698bb261b21f0cee77373ee1849f3c2ea1968e5d7572304067f047fcf1b7602d')
b2sums=('3970e0b08c7f618cd26fa2b6c35b00362fc783b8e524e694fa09c7e3f8ffc8dc0045f54730f5cb816de15c14f58d600d58dcf436cd0753483f9dcda917242a7c')
2021-11-25 06:38:40 +00:00
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
}