|
# Maintainer: Francisco Martinez <zomernifalt at gmail dot com> |
|
pkgname=makerbot-desktop |
|
pkgver=3.9.1 |
|
_openmeshver=3.2_3.2 |
|
pkgrel=2 |
|
pkgdesc="A complete, free 3D printing solution for discovering, managing, and sharing your 3D |
|
prints." |
|
arch=('x86_64') |
|
url="https://www.makerbot.com/desktop" |
|
license=('GPL') |
|
depends=('boost-for-makerbot' 'glibc>=2.4' 'hicolor-icon-theme' 'dbus>=1.0.2' 'libgl' 'qt5-base>=5.3.0' 'qt5-webkit>=5.0.2' 'zenity' 'zlib>=1.1.4' 'python>=3.4' 'python-jsonschema') |
|
conflicts=('jsoncpp') |
|
options=('!strip') |
|
install="$pkgname.install" |
|
_fakeubunturelease=16.04 |
|
_baseurl="http://downloads.makerbot.com/makerware/ubuntu/pool/main" |
|
|
|
_arch="amd64" |
|
md5sums=( |
|
'6aec60dd4a7a3a20857d575e841002ff' |
|
'9a39a730e4c5d31f87f5710ddbc0e644' |
|
'59ea097b7deec6d352a057df4baf894d' |
|
'b4fd76e23628fcbc301e27d969600ce9' |
|
'7a56fc6629bccb944873ad2fc191286e' |
|
'2f202ee0f369b8967aa0f7b749058b63' |
|
'7fd2512a4dd14641f3613810da79981b' |
|
'c992b06dd6f7cb648ba437ee4740385e' |
|
'79c46c1e65ce4bc5e61ecc7913409c0b' |
|
'419ba461b954743cbadc79bac1245113' |
|
'74175f5415e6be6fb26725fb1d02c07c' |
|
'fb5ed20c75174e7de3b620ce86f746bc' |
|
'214aba4e8e0a36e1dbfceab48d1ee735' |
|
'be31f512661788e893d17a7e5b983e16' |
|
'e3c45d0ceda92580576f774540982837' |
|
'30cfca0bae8324016a51b781e01afba4' |
|
'7b4f4562ce814dcfa51b319c075c16fd' |
|
'03ef90d770466e51857010e477d66419') |
|
|
|
source=( |
|
"$_baseurl/m/makerware/makerware_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/conveyor_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/conveyor-common_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/conveyor-ui_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/libmbqtutils_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/libthing_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/libtinything_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/libtoolpathviz_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/mb-fopenhack_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/mb-libjsonrpc_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/mbacceleration_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/sliceconfig_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/o/openmesh/libopenmesh-${_openmeshver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/mb-pyserial_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/makerbot-driver_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/libdigitizer_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/miracle-grue_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"$_baseurl/m/makerware/mb-libjsoncpp_${pkgver}-${_fakeubunturelease}_${_arch}.deb") |
|
noextract=( |
|
"makerware_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"conveyor_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"conveyor-ui_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"conveyor-common_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libmbqtutils_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libthing_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libtinything_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libtoolpathviz_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"mb-libjsoncpp_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"mb-fopenhack_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"mb-libjsonrpc_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"mbacceleration_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"sliceconfig_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libopenmesh-${_openmeshver}-${_fakeubunturelease}_${_arch}.deb" |
|
"mb-pyserial_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"makerbot-driver_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"libdigitizer_${pkgver}-${_fakeubunturelease}_${_arch}.deb" |
|
"miracle-grue_${pkgver}-${_fakeubunturelease}_${_arch}.deb") |
|
|
|
|
|
install="$pkgname.install" |
|
|
|
package() { |
|
cd ${pkgdir} |
|
|
|
msg2 "Extracting DEBs" |
|
for file in $srcdir/*.deb; do ar p $file data.tar.xz | tar -xJ; done |
|
|
|
msg2 "Using modified .desktop file to avoid attempting to call python3.4 directly" |
|
sed -i 's/$SCRIPTDIR/env PATH=\/usr\/lib\/makerbot:$PATH $SCRIPTDIR/' usr/bin/makerware |
|
|
|
msg2 "Moving files around" |
|
mv lib/udev/ usr/lib/ |
|
rm -r lib |
|
|
|
msg2 "Creating link to python3 to avoid an explicit dependence on pyhton 3.4" |
|
ln -s /usr/bin/python3 usr/lib/makerbot/python3.4 |
|
} |
Unfortunately I had to create a package for the old boost version as well - simply symlinking to the newer version worked for all programs except magic_grue, which segfaulted. I guess boost doesn't semver.