20 lines
596 B
Plaintext
20 lines
596 B
Plaintext
# Description: Ruby module for accessing the ncurses library
|
|
# URL: http://ncurses-ruby.berlios.de
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: ruby
|
|
|
|
name=ncurses-ruby
|
|
version=1.3.1
|
|
release=1
|
|
source=(http://download.berlios.de/$name/$name-$version.tar.bz2
|
|
http://pkgs.fedoraproject.org/cgit/ruby-ncurses.git/plain/0001-STR2CSTR-deprecated.patch)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
patch -p1 -i $SRC/0001-STR2CSTR-deprecated.patch
|
|
sed -i '72i#include <sys/time.h>\n' ncurses_wrap.c
|
|
ruby extconf.rb --vendor
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|