aboutsummaryrefslogtreecommitdiffstats
path: root/main/ruby-sqlite/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-06-30 07:06:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-06-30 07:06:48 +0000
commitff21403a29341cc0a762ee7ea1afbd276889c5e3 (patch)
tree6844e173766e604471f1b508b09ae3b2e8063dc2 /main/ruby-sqlite/APKBUILD
parent87bb871fde5242d26be8f383e59294cc659667cd (diff)
downloadaports-ff21403a29341cc0a762ee7ea1afbd276889c5e3.tar.bz2
aports-ff21403a29341cc0a762ee7ea1afbd276889c5e3.tar.xz
main/ruby-sqlite: rename dir so it matches pkgname
Diffstat (limited to 'main/ruby-sqlite/APKBUILD')
-rw-r--r--main/ruby-sqlite/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/ruby-sqlite/APKBUILD b/main/ruby-sqlite/APKBUILD
new file mode 100644
index 0000000000..696c8956a9
--- /dev/null
+++ b/main/ruby-sqlite/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=ruby-sqlite
+_realname=sqlite3
+pkgver=1.3.3
+pkgrel=0
+pkgdesc="SQLite API module for Ruby"
+url="http://rubygems.org/gems/sqlite3"
+arch="all"
+license="GPL"
+depends="ruby"
+depends_dev="sqlite-dev ruby-dev"
+makedepends="$depends_dev rubygems"
+install=""
+subpackages=""
+source=""
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+build() {
+ mkdir -p "$_builddir" || return 1
+ local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
+ gem install $_realname -v $pkgver -i "$_builddir"$_gemdir \
+ --ignore-dependencies --verbose \
+ --no-rdoc --no-ri || return 1
+ rm -rf "$_builddir"$_gemdir/cache/
+}
+
+package() {
+ mkdir -p "$pkgdir" || return 1
+ cp -ra "$_builddir"/* "$pkgdir"/ || return 1
+}