summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDDoSolitary2020-03-08 19:07:20 +0800
committerDDoSolitary2020-03-08 19:07:20 +0800
commitd793538a9d9d6456c95ab4b2ef46a7fa0ee54ce6 (patch)
tree23bc84af6d866f28eb80b2dddb7864b4269b4883
downloadaur-d793538a9d9d6456c95ab4b2ef46a7fa0ee54ce6.tar.gz
Initial commit .
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..53a0b1400b3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = ruby-faraday-0.17
+ pkgdesc = HTTP/REST API client library.
+ pkgver = 0.17.3
+ pkgrel = 1
+ url = https://github.com/lostisland/faraday
+ arch = any
+ license = MIT
+ makedepends = ruby-rdoc
+ depends = ruby
+ depends = ruby-multipart-post>=1.2
+ depends = ruby-multipart-post<3
+ provides = ruby-faraday=0.17.3
+ noextract = faraday-0.17.3.gem
+ options = !emptydirs
+ source = https://rubygems.org/downloads/faraday-0.17.3.gem
+ sha512sums = 5e950a01181692224767b598924fd3892696f7d56688e33281b031af7b047ca3e7ccdedbd486f82fd1fed6779b24517523d3177407435aa50cccb9cb95b43143
+
+pkgname = ruby-faraday-0.17
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e1eac030540
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: DDoSolitary <DDoSolitary@gmail.com>
+
+_gemname=faraday
+pkgname=ruby-$_gemname-0.17
+pkgver=0.17.3
+pkgrel=1
+pkgdesc='HTTP/REST API client library.'
+arch=('any')
+provides=(ruby-$_gemname=$pkgver)
+url='https://github.com/lostisland/faraday'
+license=('MIT')
+depends=(
+ 'ruby'
+ 'ruby-multipart-post>=1.2' 'ruby-multipart-post<3'
+)
+makedepends=('ruby-rdoc')
+options=('!emptydirs')
+source=("https://rubygems.org/downloads/$_gemname-$pkgver.gem")
+noextract=("$_gemname-$pkgver.gem")
+sha512sums=('5e950a01181692224767b598924fd3892696f7d56688e33281b031af7b047ca3e7ccdedbd486f82fd1fed6779b24517523d3177407435aa50cccb9cb95b43143')
+
+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.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
+}