Date: Saturday, December 31, 2016 @ 23:27:00
  Author: anthraxx
Revision: 203412

addpkg: ruby-network_interface 0.0.1-4

Added:
  ruby-network_interface/
  ruby-network_interface/repos/
  ruby-network_interface/trunk/
  ruby-network_interface/trunk/PKGBUILD

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

Added: ruby-network_interface/trunk/PKGBUILD
===================================================================
--- ruby-network_interface/trunk/PKGBUILD                               (rev 0)
+++ ruby-network_interface/trunk/PKGBUILD       2016-12-31 23:27:00 UTC (rev 
203412)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+_gemname=network_interface
+pkgname=ruby-${_gemname}
+pkgver=0.0.1
+pkgrel=4
+pkgdesc='Library to get network interface information'
+url='https://github.com/rapid7/network_interface'
+arch=('i686' 'x86_64')
+license=('MIT')
+depends=('ruby')
+options=('!emptydirs')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/rapid7/network_interface/archive/v${pkgver}.tar.gz)
+sha512sums=('d6ef7b82b2e3b4834b1eede2734bbef80c5a635ac62db33b3b3ba5660910c4cbc38c270e3b4e5be039217ba20e7064da172869cf7553a62db9526bcb43bf1013')
+
+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 -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  find "${pkgdir}" \( -name gem_make.out -o -name mkmf.log \) -delete
+  rm "${pkgdir}/${_gemdir}/cache/${_gemname}-${pkgver}.gem"
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to