[arch-commits] Commit in ruby-daemons/repos (community-any community-any/PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Mon Oct 9 22:36:35 UTC 2017


    Date: Monday, October 9, 2017 @ 22:36:35
  Author: anthraxx
Revision: 262253

archrelease: copy trunk to community-any

Added:
  ruby-daemons/repos/community-any/
  ruby-daemons/repos/community-any/PKGBUILD
    (from rev 262252, ruby-daemons/trunk/PKGBUILD)

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Copied: ruby-daemons/repos/community-any/PKGBUILD (from rev 262252, ruby-daemons/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2017-10-09 22:36:35 UTC (rev 262253)
@@ -0,0 +1,39 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=daemons
+pkgname=ruby-${_gemname}
+pkgver=1.2.4
+pkgrel=1
+pkgdesc='Easy way to wrap existing ruby scripts to be run as a daemon'
+url='https://github.com/thuehlinger/daemons'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/thuehlinger/daemons/archive/v${pkgver}.tar.gz)
+sha256sums=('34e28ad4f5b8fa402f7f2783949024da09575dcde6b8110242ca2048ad932608')
+sha512sums=('9b6f0202ad87704b441f150ae5c3f5086861ba220069b6e7219714b62c36711889fdd094cfc1de907e9fb4528e5f6bb42b5421b9bcc4ec286648349e78da280f')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec # don't give a fuck about rubys bla bla
+  sed 's|README.md LICENSE Releases ||' -i ${_gemname}.gemspec
+  sed -r 's|`git ls-files (.+)`|`find \1 -type f`|' -i ${_gemname}.gemspec
+}
+
+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 Releases -t "${pkgdir}/usr/share/doc/${pkgname}"
+  cp -a examples "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 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