summaryrefslogtreecommitdiff
path: root/community/ruby-ncurses/PKGBUILD
blob: ba37a6dc578577a907ec466c109d79d23b5fa058 (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
38
39
40
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' 'mips64el')
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: