[arch-commits] Commit in ruby-ncurses/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Mar 18 16:14:03 UTC 2019


    Date: Monday, March 18, 2019 @ 16:14:02
  Author: arodseth
Revision: 442481

upgpkg: ruby-ncurses 1.3.1-13

Modified:
  ruby-ncurses/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-18 16:11:22 UTC (rev 442480)
+++ PKGBUILD	2019-03-18 16:14:02 UTC (rev 442481)
@@ -1,4 +1,5 @@
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Anatol Pomozov <anatol.pomozov at gmail.com>
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
 # Contributor: Brad Fanella <bradfanella at archlinux.us>
 # Contributor: Jeff Mickey <j at codemac.net>
 # Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
@@ -5,27 +6,26 @@
 
 pkgname=ruby-ncurses
 pkgver=1.3.1
-pkgrel=12
+pkgrel=13
 pkgdesc='Module for interactive text console applications (ncurses)'
-arch=('x86_64')
+arch=(x86_64)
 url='https://sourceforge.net/projects/ncurses-ruby.berlios/'
-license=('GPL')
-depends=('ruby' 'ncurses')
-makedepends=('addinclude')
-source=("http://downloads.sourceforge.net/ncurses-ruby.berlios/ncurses-ruby-$pkgver.tar.bz2"
+license=(GPL)
+depends=(ruby ncurses)
+source=("https://downloads.sourceforge.net/ncurses-ruby.berlios/ncurses-ruby-$pkgver.tar.bz2"
         'str2cstr.patch::https://src.fedoraproject.org/rpms/ruby-ncurses/raw/master/f/0001-STR2CSTR-deprecated.patch')
 sha256sums=('dca8ce452e989ce1399cb683184919850f2baf79e6af9d16a7eed6a9ab776ec5'
             '3a9fea87a0fa3eac58022e9e86e901601953939c15ebccede0ba64f4a011039d')
 
 prepare() {
-  cd "$srcdir/ncurses-ruby-$pkgver"
+  cd ncurses-ruby-$pkgver
 
   patch -i ../str2cstr.patch
-  addinclude ncurses_wrap.c sys/time.h
+  sed -i '1s,^,#include <sys/time.h>\n,' ncurses_wrap.c
 }
 
 build()  {
-  cd "$srcdir/ncurses-ruby-$pkgver"
+  cd ncurses-ruby-$pkgver
 
   ruby extconf.rb --vendor
   make
@@ -32,9 +32,7 @@
 }
 
 package() {
-  cd "$srcdir/ncurses-ruby-$pkgver"
-
-  make includedir="/usr/include" DESTDIR="$pkgdir" install
+  make -C ncurses-ruby-$pkgver includedir=/usr/include DESTDIR="$pkgdir" install
 }
 
-# vim:set ts=2 sw=2 et:
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list