summaryrefslogtreecommitdiff
path: root/community/ruby-ncurses
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/ruby-ncurses
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/ruby-ncurses')
-rw-r--r--community/ruby-ncurses/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/ruby-ncurses/PKGBUILD b/community/ruby-ncurses/PKGBUILD
new file mode 100644
index 000000000..4fa6eaac3
--- /dev/null
+++ b/community/ruby-ncurses/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 92582 2013-06-09 08:55:46Z arodseth $
+# Maintainer: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Brad Fanella <bradfanella@archlinux.us>
+# Contributor: Jeff Mickey <j@codemac.net>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
+
+pkgname=ruby-ncurses
+pkgver=1.3.1
+pkgrel=5
+pkgdesc='Module for interactive text console applications (ncurses)'
+arch=('x86_64' 'i686')
+url='http://ncurses-ruby.berlios.de/'
+license=('GPL')
+depends=('ruby' 'ncurses')
+makedepends=('addinclude')
+source=("http://download.berlios.de/ncurses-ruby/ncurses-ruby-$pkgver.tar.bz2"
+ 'str2cstr.patch::http://pkgs.fedoraproject.org/cgit/ruby-ncurses.git/plain/0001-STR2CSTR-deprecated.patch')
+sha256sums=('dca8ce452e989ce1399cb683184919850f2baf79e6af9d16a7eed6a9ab776ec5'
+ '3a9fea87a0fa3eac58022e9e86e901601953939c15ebccede0ba64f4a011039d')
+
+prepare() {
+ cd "$srcdir/ncurses-ruby-$pkgver"
+
+ patch -i ../str2cstr.patch
+ addinclude ncurses_wrap.c sys/time.h
+}
+
+build() {
+ cd "$srcdir/ncurses-ruby-$pkgver"
+
+ ruby extconf.rb --vendor
+ make
+}
+
+package() {
+ cd "$srcdir/ncurses-ruby-$pkgver"
+
+ make includedir="/usr/include" DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et: