Compare commits
No commits in common. "ab1b5765a11ad571a374e0ef5d6be0029de410f4" and "8d9401b385fadff6cc47b52ebbcaf73a2cf749ab" have entirely different histories.
ab1b5765a1
...
8d9401b385
3 changed files with 2 additions and 53 deletions
12
.repo/build
12
.repo/build
|
@ -30,24 +30,16 @@ 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
|
||||||
|
|
||||||
# go - modules
|
# cache downloaded 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 \
|
||||||
|
|
|
@ -90,11 +90,6 @@ 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"
|
||||||
|
|
|
@ -1,38 +0,0 @@
|
||||||
# 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
|
|
||||||
}
|
|
Loading…
Reference in a new issue