diff options
Diffstat (limited to 'unmaintained/ruby-xml-simple')
-rw-r--r-- | unmaintained/ruby-xml-simple/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/ruby-xml-simple/APKBUILD b/unmaintained/ruby-xml-simple/APKBUILD new file mode 100644 index 0000000000..e071e5cd4d --- /dev/null +++ b/unmaintained/ruby-xml-simple/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_gemname=xml-simple +pkgname=ruby-$_gemname +pkgver=1.1.2 +pkgrel=1 +pkgdesc="A simple API for XML processing." +url="https://rubygems.org/gems/$_gemname" +arch="noarch" +license="GPL" +depends="ruby" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://gems.rubyforge.org/gems/$_gemname-$pkgver.gem" + +_builddir="$srcdir"/$_realname-$pkgver + +build() { + return 0 +} + +package() { + local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')" + local _geminstdir=$_gemdir/gems/$_gemname-$pkgver + mkdir -p "$pkgdir" || return 1 + + gem install --local --install-dir "$pkgdir"/$_gemdir \ + --ignore-dependencies --verbose --no-rdoc --no-ri \ + "$srcdir"/$_gemname-$pkgver.gem || return 1 + rm -rf "$pkgdir"/$_gemdir/cache \ + "$pkgdir"/$_geminstdir/ext \ + "$pkgdir"/$_geminstdir/.require_paths +} + +md5sums="22a848ab8b47727997d0ef3b118f2c58 xml-simple-1.1.2.gem" +sha256sums="ab35af3264c9c7e4090dc8302914eec4f7eac3fd526847d82d53d023e762285a xml-simple-1.1.2.gem" +sha512sums="ad2bb25c8ca938d59529b0f510a68093e358f2b6e6871e0ed4452ef3e20c33656044ad9859b19fe403622f5f1ac0ac5a3ff4e6f2361273f907d69e5c64fb3cdd xml-simple-1.1.2.gem" |