summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 35ebf31a72374f08f7699f27e9f105a17fe2017e (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
#Maintainer: Benjamin Chretien <chretien at lirmm dot fr>
pkgdesc="Library for collision detection between two convex shapes. Git version."
url='http://libccd.danfis.cz/'
pkgname=libccd-git
pkgver=2.1.0.g7931e76
arch=('i686' 'x86_64')
pkgrel=1
license=('BSD')
makedepends=('cmake')
depends=()
_dir=libccd
source=("$_dir::git+https://github.com/danfis/libccd.git")
md5sums=('SKIP')
provides=('libccd')
conflicts=('libccd')

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

build() {
  mkdir -p "${srcdir}/build"
  cd "${srcdir}/build"
  cmake ${srcdir}/${_dir} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  make
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}/" install
}