[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sun Oct 8 04:34:17 UTC 2017
Date: Sunday, October 8, 2017 @ 04:34:16
Author: anthraxx
Revision: 262118
dpkg: ruby-sass 3.5.2-1
Added:
ruby-sass/
ruby-sass/repos/
ruby-sass/trunk/
ruby-sass/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: ruby-sass/trunk/PKGBUILD
===================================================================
--- ruby-sass/trunk/PKGBUILD (rev 0)
+++ ruby-sass/trunk/PKGBUILD 2017-10-08 04:34:16 UTC (rev 262118)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=sass
+pkgname=ruby-sass
+pkgver=3.5.2
+pkgrel=1
+pkgdesc='Sass makes CSS fun again'
+url='http://sass-lang.com/'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-sass-listen' 'ruby-yard' 'ruby-maruku')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/sass/sass/archive/${pkgver}.tar.gz)
+sha256sums=('0a4032fa16b1ce617149c07e4cab3717c7bd13915c94717ebd912cc626e7174e')
+sha512sums=('98d8dbb2ac7f1ab9a09c130ceb091c1a3853da618cb4eac68fbb7420f2710ddd4754306c8430a89fed044ce52c99f1632ed181c77abfa4e589fc0f6e5205be56')
+
+prepare() {
+ cd ${_gemname}-${pkgver}
+ sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+}
+
+build() {
+ cd ${_gemname}-${pkgver}
+ gem build ${_gemname}.gemspec
+}
+
+package() {
+ cd ${_gemname}-${pkgver}
+ local _gemdir="$(gem env gemdir)"
+ gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 MIT-LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list