diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -1,23 +1,22 @@ +# Maintainer: Christopher Loen <christopherloen at gmail dot com> # Generated by gem2arch (https://github.com/anatol/gem2arch) # Maintainer: Artem Vorotnikov <artem@vorotnikov.me> -_gemname=curb -pkgname=ruby-$_gemname -pkgver=0.8.8 +_gemname_='curb' +pkgname="ruby-${_gemname_}" +pkgver='0.9.3' pkgrel=1 -pkgdesc='Ruby libcurl bindings' -arch=(i686 x86_64) +pkgdesc='Provides Ruby-language bindings for the libcurl' +arch=('any') url='http://curb.rubyforge.org/' -license=() -depends=(ruby) +license=('MIT') +depends=('ruby' 'libcurl-compat' 'curl') options=(!emptydirs) -source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) -noextract=($_gemname-$pkgver.gem) -sha512sums=('441025ae199266009bc3f8a2068245a4ee0b83f72babc35cc4fa744b0f3efe13ba26c5f795ff6f429bb7bfbd5ce31d51e5de6b65c3f10285d9a9f5909eff286f') +source=("https://rubygems.org/downloads/${_gemname_}-${pkgver}.gem") +sha256sums=('42651d05f712a93fb9cc733910b285d389afbd16952d456b13733b12a403e009') 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" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + gem install --ignore-dependencies --no-user-install -i "${pkgdir}/${_gemdir}" -n "${pkgdir}/usr/bin" "${_gemname_}-${pkgver}.gem" + rm "${pkgdir}/${_gemdir}/cache/${_gemname_}-${pkgver}.gem" } |