summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichal Ulianko2018-09-21 21:42:23 +0200
committerMichal Ulianko2018-09-21 21:42:23 +0200
commit055b2d97ebf02bbc489353eae2144d68edeead10 (patch)
tree1166e2d0507057f0befa885d2e53f31786649f29 /PKGBUILD
parent6acb0fbebee4fa9fbec643755f1e251966d54c93 (diff)
downloadaur-coin-hg.tar.gz
Fix dependencies, build outside of the sources directory.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD12
1 files changed, 7 insertions, 5 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4d163a0b916..c894ddf90b6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,13 +1,13 @@
# Maintainer: Michal Ulianko <michal (dot) ulianko (at) gmail (dot) com>
pkgname=coin-hg
-pkgver=r11806.e3c366fe1863
+pkgver=r11844.cf2a467adeca
pkgrel=1
pkgdesc="A high-level, retained-mode 3D graphics toolkit compatible with Open Inventor 2.1"
arch=('x86_64')
url="https://bitbucket.org/Coin3D/coin"
license=('BSD')
-depends=('libgl')
+depends=('glu')
makedepends=('mercurial' 'cmake' 'doxygen')
provides=("${pkgname%-hg}")
conflicts=("${pkgname%-hg}")
@@ -24,14 +24,16 @@ pkgver() {
}
build() {
- cd "$srcdir/coin"
+ mkdir "$srcdir/build"
+ cd "$srcdir/build"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
- -DCMAKE_INSTALL_LIBDIR="/usr/lib"
+ -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
+ ../coin
make
}
package() {
- cd "$srcdir/coin"
+ cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
}