Skip to content

Commit

Permalink
Install license
Browse files Browse the repository at this point in the history
  • Loading branch information
micwoj92 committed Apr 10, 2024
1 parent e95da19 commit dbacbf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
pkgbase = ruby-rspec-puppet
pkgdesc = RSpec tests for your Puppet manifests
pkgver = 4.0.2
pkgrel = 2
pkgrel = 3
url = https://github.com/puppetlabs/rspec-puppet
arch = any
license = MIT
depends = ruby-rspec
noextract = rspec-puppet-4.0.2.gem
source = https://rubygems.org/downloads/rspec-puppet-4.0.2.gem
source = https://raw.githubusercontent.com/puppetlabs/rspec-puppet/main/LICENSE
sha256sums = 1a9f6bd65700b69d4061133c05eec92d37b97a80191a06e2e19d6a3a183929c5
sha256sums = 58edb1bd86d10b0e4057fe226850304c60a5f876525152bf936a63a8f1356eba

pkgname = ruby-rspec-puppet
9 changes: 6 additions & 3 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,21 @@

pkgname=ruby-rspec-puppet
pkgver=4.0.2
pkgrel=2
pkgrel=3
pkgdesc='RSpec tests for your Puppet manifests'
arch=('any')
url='https://github.com/puppetlabs/rspec-puppet'
license=('MIT')
depends=('ruby-rspec')
source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem")
source=("https://rubygems.org/downloads/${pkgname#*-}-${pkgver}.gem"
"https://raw.githubusercontent.com/puppetlabs/rspec-puppet/main/LICENSE")
noextract=("${pkgname#*-}-${pkgver}.gem")
sha256sums=('1a9f6bd65700b69d4061133c05eec92d37b97a80191a06e2e19d6a3a183929c5')
sha256sums=('1a9f6bd65700b69d4061133c05eec92d37b97a80191a06e2e19d6a3a183929c5'
'58edb1bd86d10b0e4057fe226850304c60a5f876525152bf936a63a8f1356eba')

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

0 comments on commit dbacbf2

Please sign in to comment.