summaryrefslogtreecommitdiff
path: root/community/mysql-ruby/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mysql-ruby/PKGBUILD')
-rw-r--r--community/mysql-ruby/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/community/mysql-ruby/PKGBUILD b/community/mysql-ruby/PKGBUILD
new file mode 100644
index 000000000..134963291
--- /dev/null
+++ b/community/mysql-ruby/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 42318 2011-03-16 11:01:28Z jelle $
+# Contributor: Douglas Soares de Andrade <dsa@aur.archlinux.org>
+# Contributor: Markku <rasat@user-contributions.org>
+
+pkgname=mysql-ruby
+pkgver=2.8.2
+pkgrel=2
+pkgdesc='This is the MySQL API module for Ruby.'
+arch=('i686' 'x86_64')
+license=('GPL')
+url='http://tmtm.org/downloads/mysql/ruby'
+depends=('ruby' 'libmysqlclient')
+source=("http://tmtm.org/downloads/mysql/ruby/${pkgname}-${pkgver}.tar.gz")
+md5sums=('eb998b89b7e391cffe0a1f84bd426f9b')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ruby extconf.rb
+
+ ruby extconf.rb --with-mysql-config
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+}