blob: a291173cc05363356514f316af331225b84589ad (
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
43
44
45
46
47
48
49
|
# Maintainer: acxz <akashpatel2008 at yahoo dot com>
pkgname=sisl-git
pkgver=r576.7c28cab
pkgrel=1
pkgdesc="The SINTEF Spline Library - Comprehensive NURBS library"
arch=('i686' 'x86_64')
url="https://www.sintef.no/projectweb/geometry-toolkits/sisl/"
license=('AGPL-3.0')
depends=()
optdepends=()
makedepends=('cmake' 'git')
provides=('sisl')
_name=SISL
source=("git+https://github.com/SINTEF-Geometry/${_name}.git")
sha256sums=('SKIP')
pkgver() {
cd "${_name}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
_buildtype="Release"
build() {
# Create a build directory
mkdir -p "${srcdir}/${_name}/build"
cd "${srcdir}/${_name}/build"
msg "Starting CMake (build type: ${_buildtype})"
cmake .. \
-DCMAKE_BUILD_TYPE="${_buildtype}" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DBUILD_SHARED_LIBS=ON
msg "Building the project"
make
}
package() {
cd "${srcdir}/${_name}/build"
msg "Installing files"
make DESTDIR="${pkgdir}/" install
}
|