summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 67f9fa14ffd69c8ac588fb115f3bdcfe6d93efd5 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Maintainer: Yunhui Fu <yhfudev@gmail.com>

pkgname=tulip
pkgver=5.1.0
pkgrel=1
pkgdesc='Tulip is an information visualization framework dedicated to the analysis and visualization of relational data.'
arch=( 'i686' 'x86_64' 'armv6' 'armv6h' 'arm7h' )
url='http://tulip.labri.fr/'
license=('GPL')
depends=(
    'qt4'
    'libjpeg'
    'libpng'
    'zlib'
    'glew'
    'libxml2'
    'freetype2'
    'qtwebkit'
    )
makedepends=(
    'cmake'
    )
source=(
    "https://sourceforge.net/projects/auber/files/tulip/tulip-${pkgver}/tulip-${pkgver}_src.tar.gz"
    #"tulip-svn::svn+http://svn.code.sf.net/p/auber/code/"
    )
md5sums=('f29fc38efe91e2402adbffea695bd794')
sha1sums=('9d615400cd9b854547698cb5efb231c7dbef7e63')

pkgver_git() {
    cd "${srcdir}/${pkgname}"
    local ver="$(git show | grep commit | awk '{print $2}' )"
    #printf "r%s" "${ver//[[:alpha:]]}"
    echo ${ver:0:7}
}

pkgver_svn() {
    cd "${srcdir}/${pkgname}"
    local ver="$(svn info | grep Revision | awk '{print $2}' )"
    #printf "r%s" "${ver//[[:alpha:]]}"
    echo ${ver:0:7}
}

#pkgver() {
#    pkgver_git
#}

prepare()
{
    #cd "${srcdir}/${pkgname}"
    cd "${srcdir}/${pkgname}-${pkgver}"

    mkdir -p build && cd build && \
    cmake \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_SHARED_LIBS=ON \
        -DBUILD_STATIC_LIBS=OFF \
        ..
}

build()
{
    #cd "${srcdir}/${pkgname}"
    cd "${srcdir}/${pkgname}-${pkgver}"

    cd build && \
    make -j $(cat /proc/cpuinfo | grep processor | wc -l | awk '{print $0 + 1;}')
}

verify_build()
{
    #cd "${srcdir}/${pkgname}"
    cd "${srcdir}/${pkgname}-${pkgver}"

}

package()
{
    #cd "${srcdir}/${pkgname}"
    cd "${srcdir}/${pkgname}-${pkgver}"

    cd build && \
    make DESTDIR="${pkgdir}" install
}