aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/ruby-network_interface/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'unmaintained/ruby-network_interface/APKBUILD')
-rw-r--r--unmaintained/ruby-network_interface/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-network_interface/APKBUILD b/unmaintained/ruby-network_interface/APKBUILD
new file mode 100644
index 0000000000..ed29c9f7fe
--- /dev/null
+++ b/unmaintained/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"