[arch-commits] Commit in ruby-sassc/repos (2 files)
Anatol Pomozov
anatolik at archlinux.org
Thu Dec 3 17:27:27 UTC 2020
Date: Thursday, December 3, 2020 @ 17:27:26
Author: anatolik
Revision: 769722
archrelease: copy trunk to community-testing-x86_64
Added:
ruby-sassc/repos/community-testing-x86_64/
ruby-sassc/repos/community-testing-x86_64/PKGBUILD
(from rev 769721, ruby-sassc/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: ruby-sassc/repos/community-testing-x86_64/PKGBUILD (from rev 769721, ruby-sassc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-12-03 17:27:26 UTC (rev 769722)
@@ -0,0 +1,29 @@
+# Maintainer: Anatol Pomozov
+
+_gemname=sassc
+pkgname=ruby-$_gemname
+pkgver=2.4.0
+pkgrel=1
+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)
+sha1sums=('3032f0c1662efc8aa04636e99a6bdefd15549fc8')
+
+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
+ 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
+}
More information about the arch-commits
mailing list