diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 38 |
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1d056ccb5f9a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = ruby-augeas + pkgdesc = Provides Ruby bindings for augeas + pkgver = 0.5.0 + pkgrel = 0 + url = http://augeas.net + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + license = LGPL + makedepends = rubygems + depends = ruby + depends = augeas + noextract = ruby-augeas-0.5.0.gem + source = https://rubygems.org/downloads/ruby-augeas-0.5.0.gem + md5sums = 0638a1a9c1bfbc8a94efca9ee24216b5 + +pkgname = ruby-augeas + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2a2e5dc4363b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Greg Sutcliffe <greg.sutcliffe at gmail dot com> + +_gemname=ruby-augeas +pkgname=$_gemname +pkgver=0.5.0 +pkgrel=0 +pkgdesc="Provides Ruby bindings for augeas" +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') +url="http://augeas.net" +license=('LGPL') +depends=(ruby augeas) +makedepends=(rubygems) +source=(https://rubygems.org/downloads/$_gemname-${pkgver//_/-}.gem) +noextract=($_gemname-$pkgver.gem) +md5sums=('0638a1a9c1bfbc8a94efca9ee24216b5') + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + 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" +} + + +package() { + cd "$srcdir" + # _gemdir is defined inside package() because if ruby[gems] is not installed on + # the system, makepkg will exit with an error when sourcing the PKGBUILD. + 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" +} + +# vim:set ts=2 sw=2 et: |