summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5bd2c53dbaf6b2423015f25b04a048309ce29a64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: Remy Adriaanse <remy@adriaanse.it>

pkgname=ruby-net-scp
pkgver=1.2.1
_gemname=net-scp
pkgrel=2
pkgdesc='A pure Ruby implementation of the SCP client protocol'
arch=(any)
url='https://github.com/net-ssh/net-scp'
license=(MIT)
depends=(ruby ruby-net-ssh)
options=(!emptydirs)
source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem)
noextract=($_gemname-$pkgver.gem)
sha512sums=('64645a4517d6e408e3acfdb24576c8ded3b6ff981035ca10a2e081f9e3ab093f97b4848da4acca03ade364483766677e31296d09a31db4c81eb40123fc966829')

package() {
  local _gemdir="$(ruby -e'puts Gem.default_dir')"
  gem install --ignore-dependencies --no-user-install -i "$pkgdir/$_gemdir" -n "$pkgdir/usr/bin" $_gemname-$pkgver.gem
  rm "$pkgdir/$_gemdir/cache/$_gemname-$pkgver.gem"
  install -D -m644 "$pkgdir/$_gemdir/gems/$_gemname-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}