summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 30d1d5f5cd8d13e9fe2808e6c48ad9c4370c37d9 (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
28
29
30
31
32
33
# 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.25.0
pkgrel=1
pkgdesc="Sass makes CSS fun again (canonical implementation)"
arch=(x86_64)
url="http://sass-lang.com/"
license=('MIT')
makedepends=("dart>=2.6.0")
options=(!strip)
provides=('sass')
conflicts=('ruby-sass')
source=("https://github.com/sass/$pkgname/archive/$pkgver.tar.gz")
b2sums=('7cbcf36a31b08243f9ce28e6c7b1161ad8a2b87978d2618011fa786f04b139e27eada0d7291e400e2ebf21eadc159e92564c45f56339de73f90c46e1f7dbd2d7')

build() {
  cd "$pkgname-$pkgver"
  pub get
  /opt/dart-sdk/bin/dart2native bin/sass.dart -Dversion=$pkgver -o sass
}

package() {
  cd "$pkgname-$pkgver"
  pwd
  echo build/sass
  install -D -m755 sass "$pkgdir/usr/bin/sass"
  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}