aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/ruby-actionpack-xml_parser4.2/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/main/ruby-actionpack-xml_parser4.2/APKBUILD b/main/ruby-actionpack-xml_parser4.2/APKBUILD
new file mode 100644
index 0000000000..aaee47851d
--- /dev/null
+++ b/main/ruby-actionpack-xml_parser4.2/APKBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_gemname=actionpack-xml_parser
+pkgname=ruby-${_gemname}4.2
+pkgver=1.0.1
+pkgrel=0
+pkgdesc="XML parameters parser for Action Pack"
+url="http://www.rubyonrails.org/"
+arch="noarch"
+license="MIT"
+depends="ruby ruby-actionpack4.2"
+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
+
+ cd "$pkgdir"
+ for i in usr/lib/ruby/gems/*/bin/*; do
+ if [ -e "$i" ]; then
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s /$i "$pkgdir"/usr/bin/
+ fi
+ done
+}
+
+md5sums="0e97a8c533025b8fe6dafb318c878ab3 actionpack-xml_parser-1.0.1.gem"
+sha256sums="9074f7d3ca7056c26671f025fe940438a5f416a8fa6297b7415294454016da1e actionpack-xml_parser-1.0.1.gem"
+sha512sums="5bf9d52772f00edbf8b2cc1ea1e2ecd74de74012e4b7c5e6b15dd26cac4db972633664438d0b930c757508e376f262d248b6a0e19bb6dcf6d9e072271bead30a actionpack-xml_parser-1.0.1.gem"