blob: a963896136f435dc35b1fbe5893ad9bb349163e4 (
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
|
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>
pkgname=opencamlib-git
pkgver=11.10.73.g30ed446
pkgrel=1
pkgdesc="Multi-Purpose CNC Toolpath Library"
arch=('i686' 'x86_64')
url="https://github.com/aewallin/opencamlib"
license=('GPL3')
makedepends=('boost' 'cmake' 'doxygen')
depends=('python2' 'boost')
provides=('opencamlib')
conflicts=('opencamlib')
source=("git+https://github.com/aewallin/opencamlib.git" 'CMakeLists.txt.patch')
md5sums=('SKIP' '84af9224f4e3929afe447e843094b103')
pkgver() {
cd opencamlib
git describe --tags | sed 's/-/./g'
}
prepare() {
cd "$srcdir/opencamlib/src"
patch < $srcdir/CMakeLists.txt.patch
}
build() {
mkdir "$srcdir/opencamlib/build"
cd "$srcdir/opencamlib/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir/opencamlib/build"
make install DESTDIR=$pkgdir
}
|