[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at archlinux.org
Sat Dec 31 22:59:15 UTC 2016
Date: Saturday, December 31, 2016 @ 22:59:14
Author: anthraxx
Revision: 203407
addpkg: ruby-em-proxy 0.1.9-2
Added:
ruby-em-proxy/
ruby-em-proxy/repos/
ruby-em-proxy/trunk/
ruby-em-proxy/trunk/PKGBUILD
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Added: ruby-em-proxy/trunk/PKGBUILD
===================================================================
--- ruby-em-proxy/trunk/PKGBUILD (rev 0)
+++ ruby-em-proxy/trunk/PKGBUILD 2016-12-31 22:59:14 UTC (rev 203407)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=em-proxy
+pkgname=ruby-${_gemname}
+pkgver=0.1.9
+pkgrel=2
+pkgdesc='EventMachine Proxy DSL for writing high-performance transparent / intercepting proxies'
+url='https://github.com/igrigorik/em-proxy'
+arch=('any')
+license=('MIT')
+depends=('ruby' 'ruby-eventmachine')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/igrigorik/em-proxy/archive/v${pkgver}.tar.gz)
+sha512sums=('722b5010c8de9a809016b330e2123dc3bfb61e0c497844babb3af283e166271c00d74d58ca24c14e02b89346c114a2fd516a62ea00d5efe75981785719ad48e6')
+
+prepare() {
+ cd ${_gemname}-${pkgver}
+ sed 's|git ls-files|find|' -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 CHANGELOG.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+ cp -r examples "${pkgdir}/usr/share/doc/${pkgname}"
+ rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list