Compare commits

...

3 commits

Author SHA1 Message Date
ab1b5765a1
build: add dart cache 2021-11-25 06:40:59 +00:00
f7a455b9ec
nvchecker: add dart-sass 2021-11-25 06:40:15 +00:00
a48ee1ce95
addpkg: dart-sass 1.43.5-1 2021-11-25 06:38:40 +00:00
3 changed files with 53 additions and 2 deletions

View file

@ -30,16 +30,24 @@ for package in "${PACKAGES[@]}"; do
# capture output for parsing dependencies # capture output for parsing dependencies
makepkg_output=$(makepkg --printsrcinfo) makepkg_output=$(makepkg --printsrcinfo)
# cache downloaded crates #
# cache various downloads
#
# rust - crates
if grep -q "depends = rust\|cargo" <<<"$makepkg_output"; then if grep -q "depends = rust\|cargo" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo) EXTRA_ARGS+=(--bind-rw /var/cache/cargo:/build/.cargo)
fi fi
# cache downloaded modules # go - modules
if grep -q "depends = go" <<<"$makepkg_output"; then if grep -q "depends = go" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go) EXTRA_ARGS+=(--bind-rw /var/cache/golang:/build/go)
fi fi
# dart - packages
if grep -q "depends = dart" <<<"$makepkg_output"; then
EXTRA_ARGS+=(--bind-rw /var/cache/dartlang:/build/.pub-cache)
fi
# build signed package in chroot & add to local repo # build signed package in chroot & add to local repo
aur build \ aur build \
--chroot \ --chroot \

View file

@ -90,6 +90,11 @@ to_pattern = '\1.\2.\3'
# github # github
[dart-sass]
source = "github"
github = "sass/dart-sass"
use_max_tag = true
[elfshaker] [elfshaker]
source = "github" source = "github"
github = "elfshaker/elfshaker" github = "elfshaker/elfshaker"

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
}