summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 716fea0eb844e498e9d0e4b651e4eb03e05b883d (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
# Maintainer:  Martin C. Doege <mdoege at compuserve dot com>

pkgname='aqsis-git'
pkgdesc='A Pixar RenderMan-compliant REYES renderer'
pkgver=20200513.883cc9e0
pkgrel=1
arch=('i686' 'x86_64')
license=('GPL3')
url='https://github.com/aqsis/aqsis'

depends=('libtiff' 'flex' 'bison' 'zlib' 'libjpeg' 'openexr')
makedepends=('boost' 'git' 'cmake')
source=('git+https://github.com/aqsis/aqsis.git')
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/aqsis"
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

prepare() {
    cd "$srcdir/aqsis"
    git submodule update --init
}

build() {
    mkdir -pv "$srcdir/build"
    cd "$srcdir/build"
    cmake ../aqsis -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd "$srcdir/build" || exit 1
    make DESTDIR="${pkgdir}" install
}