summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cf3bf70e7f6915b8bf5d33b5edb4ce9818fa878 (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
# 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>


pkgname=libviper
pkgver=3.0.1
pkgrel=1
_commit=1a991a8ccce65c7a0711a07a46a0ae830fcb7f8b
pkgdesc="API for ncurses/libgpm offering simple window creation and management to quickly create text interfaces"
arch=('i686' 'x86_64')
url="https://github.com/TragicWarrior/libviper"
license=('GPL2')
depends=('glibc>=2.8' 'gpm' 'ncurses>=5.4')
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 build
  cmake ../${pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}