diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1b0fe792aae9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,22 @@ +# Maintainer: Mario Finelli <mario dot finelli at yahoo dot com> + +_gemname=git +pkgname=ruby-$_gemname +pkgver=1.2.9.1 +pkgrel=1 +pkgdesc="Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git binary." +arch=(any) +url="https://github.com/schacon/ruby-git" +license=('MIT') +depends=('ruby' 'git') +makedepends=('rubygems') +source=(https://rubygems.org/downloads/$_gemname-$pkgver.gem) +noextract=($_gemname-$pkgver.gem) +sha256sums=('9aa9a279bb45fe8a22e0799a3dbf80d7fd4866bc733256d52fec505829920eeb') + +package() { + cd "$srcdir" + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + + gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" -n "$pkgdir/usr/bin" "$_gemname-$pkgver.gem" +} |