summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a39fb80b79f3dc36b404bb6fef01cc64a901ae6a (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
# Maintainer: Guilhem Saurel <saurel@laas.fr>

_pkgname=osgQt
pkgname=osgqt
pkgver=3.5.7
pkgrel=4
pkgdesc="Qt project for making use of OpenSceneGraph"
arch=('i686' 'x86_64')
url="https://github.com/openscenegraph/$_pkgname"
license=('LGPL3')
depends=('openscenegraph' 'qt5-base')
optdepends=()
makedepends=('cmake')
source=("$url/archive/$pkgver.tar.gz")
md5sums=('8ecf4fb94720a02dacbdb1ceeda6f411')

build() {
    cmake -B "build-$pkgver" -S "$_pkgname-$pkgver" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DLIB_POSTFIX=
    cmake --build "build-$pkgver"
}

package() {
    DESTDIR="$pkgdir/" cmake --build "build-$pkgver" -t install

    # provide libosgQt.so / openscenegraph-osgQt.pc
    cd $pkgdir/usr/lib
    ln -s libosgQt5.so libosgQt.so
    cd pkgconfig
    ln -s openscenegraph-osgQt5.pc openscenegraph-osgQt.pc
}