summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3fd73ed74c6a1822d8d4f67b793a94326de23e84 (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
# Maintainer: mox <de underscore mox ät zoho dot com>
pkgname=ooml-git
pkgver=r63.4756421
pkgrel=1
pkgdesc="C++ Object Oriented Mechanics Language. Program for C++ to openscad cross-compilation."
arch=('any')
url="https://github.com/avalero/OOML"
license=('GPL')
makedepends=('git')
optdepends=('openscad: for using the generated scad files')
source=($pkgname-$pkgver.tar.gz)
source=("ooml::git+https://github.com/avalero/OOML.git")
sha256sums=('SKIP')


pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$srcdir/${pkgname%-git}"
	mkdir build
	cd "$srcdir/${pkgname%-git}/build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr ..
	make || return 1
}

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