updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ncursesppw / PKGBUILD
blobdad1254221a73d86cbfde47bbcbcd8b3aca4e434
1 # Maintainer: Dimitri 'Skypers' SABADIE <skypers@tuxfamily.org>
2 # Contributor: Dimitri 'Skypers' SABADIE <skypers@tuxfamily.org>
3 pkgname=ncursesppw
4 pkgver=0.1
5 pkgrel=2
6 pkgdesc="A C++ wrapper for the ncurses C library"
7 arch=(any)
8 license=('GPL')
9 url="http://git.tuxfamily.org/ncursesppw/ncursesppw.git"
10 groups=
11 provides=
12 depends=('ncurses>=5.7')
13 optdepends=
14 makedepends=('git' 'libstdc++5' 'boost')
15 conflicts=
16 replaces=
17 install=
18 source=()
19 md5sums=('e1c7a97f1be01946ad4dfa6b79e63dd8')
20 _gitroot="git://git.tuxfamily.org/gitroot/$pkgname/$pkgname.git"
22 build()
24     msg "Getting sources from the git repository ..."
25     if [[ -d $pkgname ]] ; then
26         git pull master || return 1
27         msg "Up to date"
28     else
29        git clone $_gitroot || return 1
30        msg "Sources downloaded"
31     fi
33     cd $pkgname
34     make || return 1
35                     
36     msg "Installing ..."
37     mkdir -p $pkgdir/usr/lib/
38     mkdir -p $pkgdir/usr/include/ncursesppw/
39     #mkdir -p $pkgdir/usr/share/doc/$pkgname
40     #mkdir -p $pkgdir/usr/man/$pkgname
41                     
42     cp libncursesppw.so $pkgdir/usr/lib
43     cp -r include/ncursesppw/* $pkgdir/usr/include/ncursesppw/
44                     
45     #msg "Creating documentation and man ..."