public
Created

ruby-archive-tar-minitar

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# Maintainer: Liganic <liganic-aur@gmx.net>
# Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
pkgname=ruby-archive-tar-minitar
_gemname=${pkgname#ruby-}
pkgver=0.5.2
pkgrel=2
pkgdesc="Archive::Tar::Minitar is a pure-Ruby library and command-line utility that provides the ability to deal with POSIX tar(1) archive files."
arch=('any')
url="http://rubyforge.org/projects/ruwiki/"
license=('MIT')
depends=('ruby' 'rubygems')
source=(http://rubygems.org/downloads/${_gemname}-${pkgver}.gem)
noextract=(${_gemname}-${pkgver}.gem)
md5sums=('c8bf480d64cd6be11c0670870dbd760c')
build() {
cd "${srcdir}"
export HOME=/tmp
local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
if [ ! -d "${pkgdir}/usr/bin" ]; then
mkdir -p "${pkgdir}/usr/bin";
fi
gem install --no-user-install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gemname}-${pkgver}.gem
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.