1
0
mirror of https://github.com/bertptrs/aur.git synced 2025-12-25 20:40:32 +01:00

Fix missing makedepends and license.

This commit is contained in:
2018-06-15 15:39:46 +02:00
parent 1966a4d2b9
commit 20dfd7a5c7
2 changed files with 14 additions and 5 deletions

View File

@@ -1,15 +1,18 @@
pkgbase = wayback_machine_downloader
pkgdesc = Downloader for pages in the Internet Archive
pkgver = 2.2.1
pkgrel = 1
pkgrel = 2
url = https://github.com/hartator/wayback-machine-downloader
arch = any
license = MIT
makedepends = ruby-rdoc
depends = ruby
noextract = wayback_machine_downloader-2.2.1.gem
options = !emptydirs
source = https://rubygems.org/downloads/wayback_machine_downloader-2.2.1.gem
source = wayback_machine_downloader-LICENSE::https://raw.githubusercontent.com/hartator/wayback-machine-downloader/2.2.1/MIT-LICENSE.txt
sha256sums = 623e5ef663930bb15f0dc46db21e33765a5f99b1f986a5308c4ad7ba2b0e6b8a
sha256sums = 1819d92f27aa541378c8421df329c54f404168b5bcd6d981f237a33e15f63d5b
pkgname = wayback_machine_downloader

View File

@@ -1,19 +1,25 @@
# Maintainer: Bert Peters <bert@bertptrs.nl>
pkgname=wayback_machine_downloader
pkgver=2.2.1
pkgrel=1
pkgrel=2
pkgdesc='Downloader for pages in the Internet Archive'
arch=(any)
url='https://github.com/hartator/wayback-machine-downloader'
license=(MIT) # License file is missing since it's not properly packaged in the gem.
license=(MIT)
depends=(ruby)
source=(https://rubygems.org/downloads/$pkgname-$pkgver.gem)
makedepends=(ruby-rdoc)
source=(https://rubygems.org/downloads/$pkgname-$pkgver.gem
$pkgname-LICENSE::https://raw.githubusercontent.com/hartator/wayback-machine-downloader/$pkgver/MIT-LICENSE.txt)
noextract=($pkgname-$pkgver.gem)
sha256sums=('623e5ef663930bb15f0dc46db21e33765a5f99b1f986a5308c4ad7ba2b0e6b8a')
sha256sums=('623e5ef663930bb15f0dc46db21e33765a5f99b1f986a5308c4ad7ba2b0e6b8a'
'1819d92f27aa541378c8421df329c54f404168b5bcd6d981f237a33e15f63d5b')
options=(!emptydirs)
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"
# License file is missing from the gem but we can install it anyway.
install -D "$pkgname-LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}