summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 01d6b055aa37caaa5419ad495a958185e98187e3 (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
# Maintainer: Sol Bekic <s+aur at s-ol dot nu>

_pkgname=curv
pkgname="$_pkgname-git"
pkgver=0.4.r83.g49b28a58
pkgrel=1
pkgdesc="a language for making art using mathematics"
url="https://github.com/doug-moen/curv"
arch=('x86_64')
license=('Apache')
makedepends=('cmake' 'git' 'boost' 'openexr' 'glm')
depends=('boost-libs' 'double-conversion' 'ilmbase' 'intel-tbb')

source=("git+https://github.com/doug-moen/curv")
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd "$_pkgname"
  git submodule update --init

  mkdir -p release
  cd release
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}"/usr ..
}

build() {
  cd "$_pkgname"/release
  make
}

package() {
  cd "$_pkgname"/release
  make install
}