[arch-commits] Commit in ruby-rb-fsevent/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Fri May 15 23:12:24 UTC 2020


    Date: Friday, May 15, 2020 @ 23:12:24
  Author: anthraxx
Revision: 628132

upgpkg: ruby-rb-fsevent 0.10.4-1

Added:
  ruby-rb-fsevent/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-05-15 23:12:24 UTC (rev 628132)
@@ -0,0 +1,41 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=rb-fsevent
+pkgname=ruby-${_gemname}
+pkgver=0.10.4
+pkgrel=1
+pkgdesc='FSEvents API with signals handled (without RubyCocoa)'
+url='https://github.com/thibaudgg/rb-fsevent'
+arch=('any')
+license=('MIT')
+depends=('ruby')
+makedepends=('ruby-rdoc' 'ruby-rake' 'ruby-rspec' 'ruby-bundler')
+options=('!emptydirs')
+source=(${url}/archive/v${pkgver}/${_gemname}-${pkgver}.tar.gz)
+sha512sums=('94acdd4a897834198c08a345015941cb2c82642fe49fa3871c0468a67c9425f4ab73520219def3adbd17db16ac3515183ec4a02f306069561d4440ad880cc210')
+b2sums=('bf8de5aaf1e988c5bb19a1297ac773c72a6f112383932d941ed02d558bc64789b4db54e3d306504058b11d8e754a52dfc67cc56e287eb6f8f769cb4f38fea52a')
+
+prepare() {
+  cd ${_gemname}-${pkgver}
+  sed -r 's|~>|>=|g' -i ${_gemname}.gemspec Rakefile
+  sed 's|git ls-files -z|find -type f -print0\|sed "s,\\\\./,,g"|' -i ${_gemname}.gemspec
+}
+
+build() {
+  cd ${_gemname}-${pkgver}
+  rake build
+}
+
+package() {
+  cd ${_gemname}-${pkgver}
+  local _gemdir="$(gem env gemdir)"
+  gem install --ignore-dependencies --no-user-install -i "${pkgdir}${_gemdir}" \
+    -n "${pkgdir}/usr/bin" pkg/${_gemname}-${pkgver}.gem
+  install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+
+  cd "${pkgdir}/${_gemdir}"
+  rm -r cache gems/${_gemname}-${pkgver}/ext
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list