blob: 9e1b3d27d180bdf7237c69317702e8085b0c0fe3 (
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
|
# Maintainer: Adam Goldsmith <contact@adamgoldsmith.name>
pkgname=cura-plugin-octoprint-git
_pkgname=cura-plugin-octoprint
pkgver=r399.3a2a058
pkgrel=1
pkgdesc="Cura plugin which enables printing directly to OctoPrint and monitoring the progress"
arch=('any')
license=('GPL3')
url="https://github.com/fieldofview/OctoPrintPlugin"
depends=('python' 'cura' 'python-zeroconf')
makedepends=('git' 'cmake')
source=("$_pkgname::git+https://github.com/fieldofview/OctoPrintPlugin.git#branch=master"
"git+https://github.com/jstasiak/python-zeroconf.git"
"git+https://github.com/pydron/ifaddr.git")
md5sums=('SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$_pkgname"
git submodule init
git config submodule.python-zeroconf.url $srcdir/python-zeroconf
git config submodule.ifaddr.url $srcdir/ifaddr
git submodule update
}
build() {
mkdir -p "$_pkgname"/build
cd "$_pkgname"/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make
}
package() {
cd "$srcdir/$_pkgname/build"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|