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

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

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

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

prepare() {
  cd "$_pkgname"
  git submodule update --init
  patch -Np1 -i "${srcdir}/remove_lang_file.patch"

  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
}