summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD38
1 files changed, 25 insertions, 13 deletions
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
}