blob: a99d57aaa1ec634b428bc7c16688d3cc5eb16a37 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Maintainer: Haoyang Liu <tttturtleruss@gmail.com>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Torsten Wagner <tottiwagner@yahoo.de>
pkgname=openscad-git
_pkg="${pkgname%-git}"
pkgver=r11091.9b9adabc
pkgrel=1
pkgdesc="The programmers solid 3D CAD modeller"
arch=('x86_64')
license=('GPL2')
url='https://github.com/openscad/openscad'
provides=("$_pkg")
conflicts=("$_pkg")
depends=(
'boost-libs'
'cgal'
'libzip'
'opencsg'
'qscintilla-qt5'
'qt5-base'
'qt5-svg'
'qt5-gamepad'
'qt5-multimedia'
'double-conversion'
'freetype2'
'glib2'
'harfbuzz'
'fontconfig'
'opencsg'
'gmp'
'mpfr'
'tbb'
'lib3mf'
)
makedepends=('git' 'boost' 'cmake' 'eigen' 'imagemagick' 'python')
source=("$_pkg::git+$url")
sha256sums=('SKIP')
pkgver() {
# git -C "$_pkg" describe --long --tags | sed 's/^openscad-//;s/-/.r/;s/-/./'
cd "$_pkg"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
prepare() {
cd "$_pkg"
sed -i 's/ping files.openscad.org/ping archlinux.org/' resources/CMakeLists.txt
git submodule update --init --recursive
}
build() {
cmake \
-B build \
-S "$_pkg" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
-DEXPERIMENTAL=ON \
-DOFFLINE_DOCS=ON \
-Wno-dev
cmake --build build
cd "$_pkg/resources/icons/"
convert openscad.png -resize 128x128\> openscad-128.png
}
check() {
cd "$_pkg/scripts"
echo $PWD
./check-dependencies.sh
}
package() {
DESTDIR="$pkgdir" cmake --install build
cd "$_pkg"
install -Dm644 "resources/icons/openscad.desktop" "$pkgdir/usr/share/applications/openscad.desktop"
install -Dm644 "resources/icons/openscad-128.png" "$pkgdir/usr/share/pixmaps/openscad.png"
}
|