From 5fbd6e6cd7ec11758dc7f5b0c6033495647c70cc Mon Sep 17 00:00:00 2001
From: Juergen Daubert <jue@jue.li>
Date: Mon, 7 Jun 2010 11:26:42 +0200
Subject: [PATCH] sqlite3-ruby: update to 1.3.0

---
 sqlite3-ruby/.footprint |  9 ++-------
 sqlite3-ruby/.md5sum    |  2 +-
 sqlite3-ruby/Pkgfile    | 14 +++++---------
 3 files changed, 8 insertions(+), 17 deletions(-)

diff --git a/sqlite3-ruby/.footprint b/sqlite3-ruby/.footprint
index 14749a330..badfdacec 100644
--- a/sqlite3-ruby/.footprint
+++ b/sqlite3-ruby/.footprint
@@ -4,17 +4,12 @@ drwxr-xr-x	root/root	usr/lib/ruby/
 drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/
 drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/
 drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/linux/
--rwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/linux/sqlite3_api.so
+drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/linux/sqlite3/
+-r-xr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/linux/sqlite3/sqlite3_native.so
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3.rb
 drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/constants.rb
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/database.rb
-drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/
-drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/dl/
--rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/dl/api.rb
--rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/dl/driver.rb
-drwxr-xr-x	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/native/
--rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/driver/native/driver.rb
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/errors.rb
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/pragmas.rb
 -rw-r--r--	root/root	usr/lib/ruby/vendor_ruby/1.9/sqlite3/resultset.rb
diff --git a/sqlite3-ruby/.md5sum b/sqlite3-ruby/.md5sum
index 6247a9599..e07482983 100644
--- a/sqlite3-ruby/.md5sum
+++ b/sqlite3-ruby/.md5sum
@@ -1 +1 @@
-eaa6328b0e971f4563f8d26715e37e13  sqlite3-ruby-1.2.5.gem
+e0514ba69433cefcb79c8ef0be33417c  sqlite3-ruby-1.3.0.tgz
diff --git a/sqlite3-ruby/Pkgfile b/sqlite3-ruby/Pkgfile
index d58a3e483..103dfd3c3 100644
--- a/sqlite3-ruby/Pkgfile
+++ b/sqlite3-ruby/Pkgfile
@@ -4,20 +4,16 @@
 # Depends on:  ruby, sqlite3
 
 name=sqlite3-ruby
-version=1.2.5
+version=1.3.0
 release=1
-source=(http://rubyforge.org/frs/download.php/60923/$name-$version.gem)
+source=(http://rubyforge.org/frs/download.php/71085/$name-$version.tgz)
 
 build() {
-    gem unpack $name-$version.gem
     cd $name-$version
-
-    ruby ext/sqlite3_api/extconf.rb 
-    make 
-    make DESTDIR=$PKG install
-
+    
     ruby setup.rb config
+    ruby setup.rb setup
     ruby setup.rb install --prefix=$PKG
-
+    
     mv $PKG/usr/lib/ruby/{site_ruby,vendor_ruby}
 }