diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2011-06-14 12:23:14 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2011-06-14 12:23:14 +0000 |
commit | c7241855966c73b68e2eb44991d51dddb9efb85e (patch) | |
tree | 89f05db8d2a6b53cd26740ffc4d2e0cb0ad5fdda /testing | |
parent | c0aa97619a7a6a821261f53b922445230ae4ffb3 (diff) | |
download | aports-c7241855966c73b68e2eb44991d51dddb9efb85e.tar.bz2 aports-c7241855966c73b68e2eb44991d51dddb9efb85e.tar.xz |
testing/ruby-sqlite3: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/ruby-sqlite3/APKBUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/ruby-sqlite3/APKBUILD b/testing/ruby-sqlite3/APKBUILD new file mode 100644 index 0000000000..694a86c530 --- /dev/null +++ b/testing/ruby-sqlite3/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" +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 +} |