You are not logged in.
Hi,
I was trying to make PKGBUILDs for Alexandria and its depends,
Alexandria is a GNOME application to help you manage your book collection.
http://www.gnomefiles.org/app.php?soft_id=110
REXML
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=rexml
pkgver=3.1.2
pkgrel=1
pkgdesc="REXML is an XML processor for the language Ruby."
url="http://www.germane-software.com/software/rexml"
license="GPL"
depends=(ruby)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.germane-software.com/archives/$pkgname_$pkgver.tgz)
md5sums=()
build() {
cd $startdir/src/$pkgname_$pkgver
ruby bin/install.rb -d $startdir/pkg install
}RUBY-AMAZON
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=ruby-amazon
pkgver=0.9.0
pkgrel=1
pkgdesc="Ruby/Amazon is a Ruby language library that allows programmatic access to the popular Amazon Web site via the REST (XML over HTTP) based Amazon Web Services."
url="http://www.caliban.org/ruby/ruby-amazon.shtml"
license="GPL"
depends=('ruby' 'rexml')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://www.caliban.org/files/ruby/$pkgname-$pkgver.tar.gz)
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install --prefix=$startdir/pkg
}RUBY-GETTEXT
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=ruby-gettext
pkgver=0.8.0
pkgrel=1
pkgdesc="Ruby-GetText-Package is Native Language Support Library and Tools
which modeled after GNU gettext package, but is not a wrapper of GNU GetText."
url="http://ponx.s5.xrea.com/hiki/ruby-gettext.html"
license="LGPL"
depends=('ruby' 'gettext' 'racc')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://ponx.s5.xrea.com/hiki/hiki.xcg?c=plugin;plugin=
attach_download;p=ruby-gettext;file_name=$pkgname-package-$pkgver.tar.gz)
md5sums=()
build() {
cd $startdir/src/$pkgname-package-$pkgver
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install --prefix=$startdir/pkg
}RACC
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=racc
pkgver=1.4.4
pkgrel=1
pkgdesc="Parser Generator (yacc for ruby)"
url="http://i.loveruby.net/en/prog/racc.html"
license="LGPL"
depends=(ruby)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://i.loveruby.net/archive/racc/$pkgname-$pkgver-all.tar.gz)
#http://i.loveruby.net/archive/racc/racc-1.4.4-all.tar.gz
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver-all
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install --prefix=$startdir/pkg
}RUBY-GNOME2
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=ruby-gnome2
pkgver=0.12.0
pkgrel=1
pkgdesc="Ruby-GNOME2 is a set of Ruby language bindings for the GNOME 2.0 development environment."
url="http://ruby-gnome2.sourceforge.jp/"
license=""
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://kent.dl.sourceforge.net/sourceforge/ruby-gnome2/$pkgname-all-$pkgver.tar.gz)
md5sums=()
build() {
cd $startdir/src/$pkgname-all-$pkgver
ruby extconf.rb
make
make DESTDIR=$startdir/pkg install
}and finaly:
ALEXANDRIA
# Contributor: Krzysiek Wojszko <w dot krzysiek at gmail dot com>
pkgname=alexandria
pkgver=0.5.0
pkgrel=1
pkgdesc=" Alexandria is a GNOME application to help you manage your book collection."
url="http://alexandria.rubyforge.org/"
license="GPL"
depends=('ruby' 'ruby-amazon' 'ruby-gettext' 'ruby-gnome2')
makedepends=()
conflicts=()
replaces=()
backup=()
install=alexandria.install
source=(http://rubyforge.org/frs/download.php/3445/$pkgname-$pkgver.tar.gz)
md5sums=()
build() {
cd $startdir/src/$pkgname-$pkgver
ruby install.rb config
ruby install.rb setup
ruby install.rb install --prefix=$startdir/pkg
}alexandria.install
# This is a default template for a post-install scriptlet. You can
# remove any functions you don't need (and this header).
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
gconftool-2 --shutdown
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
/bin/true
}
op=$1
shift
$op $*and after all this somethings wrong
maby something wrong with instaling ruby-programs I can run it only as a root, when running as user alexandria crashes. Maby someone has experience with ruby and will find some mistake.
Greetings
Krzysiek Wojszko
Offline
I have the same issue when running alexandria as user:
Message: undefined method `map' for nil:NilClass
Backtrace:
/usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:157:in `update_priority'
/usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:153:in `initialize'
/usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new'
/usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:18:in `new'
/usr/lib/ruby/1.8/singleton.rb:95:in `instance'
/usr/lib/ruby/1.8/singleton.rb:84:in `instance'
/usr/lib/ruby/site_ruby/1.8/alexandria/book_providers.rb:162:in `method_missing'/usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:814:in `initialize_ui'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/main_app.rb:56:in `initialize'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `new'
/usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:40:in `main'
/usr/lib/ruby/site_ruby/1.8/alexandria.rb:56:in `main'
/usr/bin/alexandria:10
Release: 0.5.0/edit: Found it--it's even in the Readme. :oops:
$ gconftool-2 --shutdown [*]
[*]: This is needed because the current GConf implementation won't
dynamically reload the schemas. Note that you don't have to start it
after that, it should be automatically spawned when needed.93,
-Sascha.rb
Offline