summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD38
-rw-r--r--ncurses-import.patch130
3 files changed, 164 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5ac9b7885b3..45006d6ce7f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,18 +1,20 @@
pkgbase = libviper
- pkgdesc = An API for ncurses/libgpm offering simple window creation and management to quickly create text interfaces.
- pkgver = 1.4.6
+ pkgdesc = API for ncurses/libgpm offering simple window creation and management to quickly create text interfaces
+ pkgver = 3.0.1
pkgrel = 1
- url = http://libviper.sourceforge.net/
+ url = https://github.com/TragicWarrior/libviper
arch = i686
arch = x86_64
license = GPL2
+ makedepends = cmake
+ makedepends = git
depends = glibc>=2.8
depends = gpm
depends = ncurses>=5.4
- source = http://downloads.sourceforge.net/libviper/libviper-1.4.6.tar.gz
- md5sums = 6b78e595b4e494976acd6f99fc8fdc7e
- sha1sums = 19d9b1fde0470f3e5a0b20e77ce14e08ca99b2fd
- sha256sums = 8cf7fd32de4f811f258c49670fb979dabc942d4dd9b10b28f43d1afe1a3f75cb
+ source = git+https://github.com/TragicWarrior/libviper.git#commit=1a991a8ccce65c7a0711a07a46a0ae830fcb7f8b
+ source = ncurses-import.patch
+ sha256sums = SKIP
+ sha256sums = 06ad5fde54fcc18e4ece0316a1917c18039784a9812bc86908ed9e6be46b26cf
pkgname = libviper
diff --git a/PKGBUILD b/PKGBUILD
index fbe00caafee..6cf3bf70e7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,39 @@
-# Contributor: TDY <tdy@archlinux.info>
+# Contributor: Lex Black <autumn-wind@web.de>
+# Contributor: aksr <aksr at t-com dot me>
+# Contributor: TDY <tdy@archlinux.info>
# Contributor: Dan Vratil <progdan@progdansoft.com>
-# Maintainer: aksr <aksr at t-com dot me>
+
+
pkgname=libviper
-pkgver=1.4.6
+pkgver=3.0.1
pkgrel=1
-pkgdesc="An API for ncurses/libgpm offering simple window creation and management to quickly create text interfaces."
+_commit=1a991a8ccce65c7a0711a07a46a0ae830fcb7f8b
+pkgdesc="API for ncurses/libgpm offering simple window creation and management to quickly create text interfaces"
arch=('i686' 'x86_64')
-url="http://libviper.sourceforge.net/"
+url="https://github.com/TragicWarrior/libviper"
license=('GPL2')
depends=('glibc>=2.8' 'gpm' 'ncurses>=5.4')
-source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
-md5sums=('6b78e595b4e494976acd6f99fc8fdc7e')
-sha1sums=('19d9b1fde0470f3e5a0b20e77ce14e08ca99b2fd')
-sha256sums=('8cf7fd32de4f811f258c49670fb979dabc942d4dd9b10b28f43d1afe1a3f75cb')
+makedepends=('cmake' 'git')
+source=("git+https://github.com/TragicWarrior/${pkgname}.git#commit=${_commit}"
+ "ncurses-import.patch")
+sha256sums=('SKIP'
+ '06ad5fde54fcc18e4ece0316a1917c18039784a9812bc86908ed9e6be46b26cf')
+
+
+prepare() {
+ mkdir -p build
+ patch -Np0 -i ncurses-import.patch
+}
build() {
- cd "$srcdir/$pkgname"
+ cd build
+ cmake ../${pkgname} \
+ -DCMAKE_INSTALL_PREFIX=/usr
make
}
package() {
- cd "$srcdir/$pkgname"
- install -Dm644 viper.h "$pkgdir/usr/include/viper.h"
- install -Dm755 $pkgname.so "$pkgdir/usr/lib/$pkgname.so"
+ cd build
+ make DESTDIR="${pkgdir}" install
}
diff --git a/ncurses-import.patch b/ncurses-import.patch
new file mode 100644
index 00000000000..eede70fb9de
--- /dev/null
+++ b/ncurses-import.patch
@@ -0,0 +1,130 @@
+--- libviper/private.h
++++ libviper/private.h
+@@ -3,7 +3,7 @@
+
+ #include <inttypes.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #include "viper.h"
+ #include "list.h"
+
+--- libviper/viper.h
++++ libviper/viper.h
+@@ -8,7 +8,7 @@
+
+ #include <sys/types.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #define LIBVIPER_VERSION "3.0.1"
+
+
+--- libviper/viper_callbacks.c
++++ libviper/viper_callbacks.c
+@@ -17,7 +17,7 @@
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *----------------------------------------------------------------------*/
+
+-#include <ncursesw/ncurses.h>
++#include <ncurses.h>
+
+ #include "viper.h"
+ #include "private.h"
+
+--- libviper/viper_callbacks.h
++++ libviper/viper_callbacks.h
+@@ -1,7 +1,7 @@
+ #ifndef _VIPER_CALLBACKS_H_
+ #define _VIPER_CALLBACKS_H_
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #include "viper.h"
+
+
+--- libviper/viper_deck.h
++++ libviper/viper_deck.h
+@@ -3,7 +3,7 @@
+
+ #include <stdbool.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ bool viper_deck_check_occlusion(VIPER_WND *bottom_wnd, VIPER_WND *top_wnd);
+
+
+--- libviper/viper_events.h
++++ libviper/viper_events.h
+@@ -3,7 +3,7 @@
+
+ #include <stdbool.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #include "viper.h"
+
+
+--- libviper/viper_kmio.h
++++ libviper/viper_kmio.h
+@@ -3,7 +3,7 @@
+
+ #include <inttypes.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #if !defined(_NO_GPM) && defined(__linux)
+ #include <gpm.h>
+
+--- libviper/viper_states.h
++++ libviper/viper_states.h
+@@ -3,7 +3,7 @@
+
+ #include <stdbool.h>
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #include "viper.h"
+
+
+--- libviper/viper_wdecorate.h
++++ libviper/viper_wdecorate.h
+@@ -1,6 +1,6 @@
+ #ifndef _H_VIPER_WDECORATE
+ #define _H_VIPER_WDECORATE
+
+-#include <ncursesw/curses.h>
++#include <curses.h>
+
+ #endif
+
+--- libviper/vk_widget.c
++++ libviper/vk_widget.c
+@@ -2,7 +2,7 @@
+ #include <stdlib.h>
+ #include <stdarg.h>
+
+-#include <ncursesw/ncurses.h>
++#include <ncurses.h>
+
+ #include "viper.h"
+ #include "vk_object.h"
+
+--- libviper/vk_widget.h
++++ libviper/vk_widget.h
+@@ -4,7 +4,7 @@
+ #include <inttypes.h>
+ #include <stdarg.h>
+
+-#include <ncursesw/ncurses.h>
++#include <ncurses.h>
+
+ #include "list.h"
+