blob: c12827fe4701a912dc0b5ec803fb7dfaf48d9976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=ruby-mysql2
_gemname=mysql2
pkgver=0.3.13
pkgrel=1
pkgdesc="A simple, fast Mysql library for Ruby, binding to libmysql"
url="https://github.com/brianmario/mysql2"
arch="all"
license="MIT"
depends="ruby"
depends_dev="ruby-dev mysql-dev"
makedepends="$depends_dev ruby"
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
}
md5sums="ee8dfc03421a1db9f6147d2efde7ced8 mysql2-0.3.13.gem"
sha256sums="2db9bc0d2abf6b505625984300c74705cdd6a0464404095499d728cc897d307d mysql2-0.3.13.gem"
sha512sums="f0e077188bdc33386ae97142a9f0af1a7796aecabb958c65dafc7405304f044d8781b4876030968ded298a0387b7693bf07bf56c5d7dfcd09134991b23f98dc1 mysql2-0.3.13.gem"
|