[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Sep 12 20:36:09 UTC 2015
Date: Saturday, September 12, 2015 @ 22:36:09
Author: anthraxx
Revision: 140007
addpkg: ruby-paint 1.0.0-2
Added:
ruby-paint/
ruby-paint/repos/
ruby-paint/trunk/
ruby-paint/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
Added: ruby-paint/trunk/PKGBUILD
===================================================================
--- ruby-paint/trunk/PKGBUILD (rev 0)
+++ ruby-paint/trunk/PKGBUILD 2015-09-12 20:36:09 UTC (rev 140007)
@@ -0,0 +1,26 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Gordin <9ordin @t gmail dot com>
+
+_gemname=paint
+pkgname=ruby-${_gemname}
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Ruby paint manages terminal colors and effects"
+url="https://github.com/janlelis/paint"
+arch=('any')
+license=('MIT')
+depends=('ruby-rspec' 'ruby-rainbow' 'ruby-term-ansicolor')
+options=('!emptydirs')
+source=(https://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
+noextract=(${_gemname}-${pkgver}.gem)
+sha512sums=('a412d7d80daec622d3eb69eed5b2badae69e1d0002e849cf173453391c4ade679b368c64deb3c50520aa6bcb5635994d919642680001df598e0b74d826ec6d7f')
+
+package() {
+ local _gemdir="$(ruby -e'puts Gem.default_dir')"
+ gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
+ install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/MIT-LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 "${pkgdir}${_gemdir}/gems/${_gemname}-${pkgver}/README.rdoc" "${pkgdir}/usr/share/doc/${pkgname}/README"
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list