diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-04-18 11:46:12 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-04-18 11:46:16 +0000 |
commit | 9fe3cc6e002419678e7ab025ab35a724c8a440d4 (patch) | |
tree | 7c3e5cceaf143e6c549f25940d121379012cf202 /testing | |
parent | de72e0dcf3ca83f764e7226219f50a42f2b6e039 (diff) | |
download | aports-9fe3cc6e002419678e7ab025ab35a724c8a440d4.tar.bz2 aports-9fe3cc6e002419678e7ab025ab35a724c8a440d4.tar.xz |
testing/ruby-network_interface: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-network_interface/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/ruby-network_interface/APKBUILD b/testing/ruby-network_interface/APKBUILD new file mode 100644 index 0000000000..ed29c9f7fe --- /dev/null +++ b/testing/ruby-network_interface/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +_gemname=network_interface +pkgname=ruby-network_interface +pkgver=0.0.1 +pkgrel=0 +pkgdesc="Library to get network interface information" +url="https://github.com/rapid7/network_interface" +arch="all" +license="MIT" +depends="ruby" +depends_dev="" +makedepends="$depends_dev ruby-dev" +install="" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/rapid7/network_interface/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/$_gemname-$pkgver +build() { + mkdir -p "$_builddir" || return 1 + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + gem install $_gemname -v $pkgver -i "$_builddir"$_gemdir \ + --ignore-dependencies \ + --verbose \ + --no-rdoc \ + --no-ri \ + || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +package() { + mkdir -p "$pkgdir" || return 1 + cp -ra "$_builddir"/* "$pkgdir"/ || return 1 +} +md5sums="b47a881487d00b17e069428211964089 ruby-network_interface-0.0.1.tar.gz" +sha256sums="fde6087592fee72602cc570361429fb416cac4b8c762860373ae5d060e584f8e ruby-network_interface-0.0.1.tar.gz" +sha512sums="d6ef7b82b2e3b4834b1eede2734bbef80c5a635ac62db33b3b3ba5660910c4cbc38c270e3b4e5be039217ba20e7064da172869cf7553a62db9526bcb43bf1013 ruby-network_interface-0.0.1.tar.gz" |