summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8ec39abc0f20fc56c2c1df16f04c3bf84254f489 (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
# Maintainer: Peter Sutton <foxxy@foxdogstudios.com>
pkgname=pangolin-git
_name=${pkgname%-git}
pkgver=r1627.5c04fb7
pkgrel=1
pkgdesc="Pangolin is a lightweight portable rapid development library for managing OpenGL display / interaction and abstracting video input."
arch=(x86_64)
url="https://github.com/stevenlovegrove/Pangolin"
license=('MIT')
groups=()
depends=(
    'glew'
    'python'
)
optdepends=(
    'cuda'
    'eigen'
    'ffmpeg'
    'libdc1394'
    'libjpeg-turbo'
    'libpng'
    'libtiff'
    'libuvc'
    'openexr'
    'openni2'
    # OpenNI/OpenNI2
    # DepthSense SDK
)
makedepends=('cmake' 'doxygen' 'git')
provides=("$_name")
conflicts=("$_name")
replaces=()
backup=()
options=()
install=
source=(
    'LICENSE'
    'wayland.patch'
    'pangolin::git+https://github.com/stevenlovegrove/Pangolin.git'
)
noextract=()
sha256sums=('fe25815547bcad7ff6d9ab12a381f64c0ef57e9fbb06cb831e9becdd22fde7c7'
            '7a5f5578d34c2f88f759f860ff074c906c2dafe62411cdffa468f877503617e7'
            'SKIP')

pkgver() {
    cd "$srcdir/$_name"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$srcdir"/"$_name"
    git remote add patch https://github.com/ebachard/Pangolin.git
    git pull patch master
    git apply "$srcdir"/wayland.patch
}

build() {
    cd "$srcdir"/"$_name"
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_PREFIX_PATH=/usr \
          -DCMAKE_BUILD_TYPE=Release \
          ..
    cmake --build .
}

package() {
    cd "$srcdir"/"$_name"/build
    make DESTDIR="$pkgdir"/ install
    install -Dm644 "$srcdir"/LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE
}