blob: ed29c9f7fefbf6078d20fb25450d8ba6c5f6d27d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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"
|