diff options
author | Adam Goldsmith | 2020-02-29 17:03:10 -0500 |
---|---|---|
committer | Adam Goldsmith | 2020-02-29 17:04:20 -0500 |
commit | 50cdc88ad9cf27cfd196bb21c8f5c61e651c387c (patch) | |
tree | bc051ee7feec3cd4c0a4bf6044a0b5f458b1de8d /PKGBUILD | |
parent | 2aa723bf81728ca50645930f4d143ec6974c57f2 (diff) | |
download | aur-cura-plugin-octoprint-git.tar.gz |
Bump version, handle submodules (thanks @qubidt)
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -2,7 +2,7 @@ pkgname=cura-plugin-octoprint-git _pkgname=cura-plugin-octoprint -pkgver=r287.62396d7 +pkgver=r399.3a2a058 pkgrel=1 pkgdesc="Cura plugin which enables printing directly to OctoPrint and monitoring the progress" arch=('any') @@ -10,14 +10,26 @@ 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") -md5sums=('SKIP') +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 |