2020-01-09 19:26:15 +00:00
|
|
|
# Maintainer: Anatol Pomozov
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - gem install with --disable-lto
|
|
|
|
|
|
|
|
_gemname=sassc
|
|
|
|
pkgname=ruby-$_gemname
|
2020-12-07 18:33:16 +00:00
|
|
|
pkgver=2.4.0
|
2024-08-09 18:26:50 +00:00
|
|
|
pkgrel=3
|
2020-01-09 19:26:15 +00:00
|
|
|
pkgdesc="Use libsass with Ruby!"
|
|
|
|
arch=(x86_64)
|
|
|
|
url='https://github.com/sass/sassc-ruby'
|
|
|
|
license=(MIT)
|
|
|
|
depends=(ruby ruby-ffi)
|
|
|
|
options=(!emptydirs)
|
|
|
|
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
|
|
|
|
noextract=($_gemname-$pkgver.gem)
|
2024-08-09 18:26:50 +00:00
|
|
|
sha256sums=('4c60a2b0a3b36685c83b80d5789401c2f678c1652e3288315a1551d811d9f83e')
|
2020-01-09 19:26:15 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
local _gemdir=$(gem env gemdir)
|
|
|
|
local _extdir=$(ruby -e'puts File.join(Gem.default_dir, "extensions", Gem::Platform.local.to_s, Gem.extension_api_version)')/$_gemname-$pkgver
|
|
|
|
gem install --ignore-dependencies --no-document --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir"/usr/bin $_gemname-$pkgver.gem -- --disable-march-tune-native --disable-lto
|
|
|
|
rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
|
|
|
|
install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
|
|
|
|
|
|
|
|
ln -s "/$_extdir/sassc/libsass.so" "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/lib/sassc/"
|
|
|
|
|
|
|
|
# remove junk
|
|
|
|
rm -r "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/"{ext,test}
|
|
|
|
rm "$pkgdir/$_extdir"/gem_make.out
|
|
|
|
}
|