summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 342f8fc69ae22df415b9bf26393666504343b0a0 (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
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Various

_pkgname=openmeca
pkgname=openmeca-git
pkgver=2.3.0.r1.g5a6f1824
pkgrel=1
pkgdesc="Simulating mechanical systems easily"
license=('GPL')
arch=('i686' 'x86_64')
url="https://gitlab.com/damien.andre/openmeca"
depends=('boost-libs' 'libqglviewer' 'qwt' 'qt5-base' 'qt5-declarative' 'qt5-svg' 'qt5-tools' 'qwt')
makedepends=('git')
source=("git+https://gitlab.com/damien.andre/openmeca.git")
sha1sums=('SKIP')


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

build() {
  cd "${_pkgname}"
  # Build the custom chronoengine and openmeca
  make all
}

package() {
  cd "${_pkgname}"
  make DESTDIR="$pkgdir" install
}