summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRobert Zhou2023-12-25 15:30:15 -0800
committerRobert Zhou2023-12-25 15:30:15 -0800
commit3aa36496cd6965f706c0be7da9c3faa2bdc28d51 (patch)
treeeb84163a5ffb84b9968c3d67677279f393dcf597 /PKGBUILD
parentb18a82bcdd135c6bd402434a3329671eebad36a7 (diff)
downloadaur-3aa36496cd6965f706c0be7da9c3faa2bdc28d51.tar.gz
Clarify Maya version requirement and use provided extraction method
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD17
1 files changed, 9 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f3afc20cce46..b55f8d016ee4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,6 +2,7 @@
# Co-Maintainer: Robert Zhou <meep (dot) aur (at) meepzh (dot) com>
_mayaver=2024
+_mayaminor=2
pkgname=maya-usd-bin
pkgver=0.26.0
@@ -10,27 +11,27 @@ pkgdesc='Autodesk Maya Universal Scene Description Plugin'
arch=('x86_64')
url='https://github.com/Autodesk/maya-usd'
license=('Apache')
-depends=('maya>=2024.0' 'maya<2025.0')
+depends=("maya=$_mayaver.$_mayaminor")
provides=('maya-usd')
conflicts=('maya-usd')
DLAGENTS+=('manual::/usr/bin/echo \ \ Note: Please download the package manually from the official website')
-source=("https://github.com/Autodesk/maya-usd/releases/download/v${pkgver}/MayaUSD_${pkgver}_Maya2024.2_Linux.run")
+source=("https://github.com/Autodesk/maya-usd/releases/download/v${pkgver}/MayaUSD_${pkgver}_Maya$_mayaver.${_mayaminor}_Linux.run")
b2sums=('e565ffa0f709c2ff53146f49b03ca6ee3a08e608ed7333ea5f67d27cbf17a612322d31563c3018b7390d8bfbb1a89dfc733d16701f0e7571244dc37444036089')
options=(!strip)
prepare() {
- chmod +x ./MayaUSD_${pkgver}_Maya2024.2_Linux.run
- ./MayaUSD_${pkgver}_Maya2024.2_Linux.run --target extracted --phase2 --noexec
+ chmod +x ./MayaUSD_${pkgver}_Maya${_mayaver}.${_mayaminor}_Linux.run
+ ./MayaUSD_${pkgver}_Maya${_mayaver}.${_mayaminor}_Linux.run --tar xvf
echo 'Extracting rpm...'
- bsdtar -xf extracted/*.rpm
+ bsdtar -xf *.rpm
sed -i "s|<PLUGIN_DIR>|/usr/autodesk/maya$_mayaver/plug-ins/mayausd|g" usr/autodesk/modules/maya/$_mayaver/mayausd.mod
sed -i 's/\$MAYA_PYTHON_VERSION/3/g' usr/autodesk/modules/maya/$_mayaver/mayausd.mod
}
package() {
- mkdir -p $pkgdir/usr/autodesk/maya$_mayaver/{modules,plug-ins/mayausd}
- mv usr/autodesk/modules/maya/$_mayaver/mayausd.mod $pkgdir/usr/autodesk/maya$_mayaver/modules/
- mv usr/autodesk/mayausd/maya$_mayaver/${pkgver}_202311130904-e634cda/mayausd/* $pkgdir/usr/autodesk/maya$_mayaver/plug-ins/mayausd/
+ mkdir -p "$pkgdir/usr/autodesk/maya$_mayaver/"{modules,plug-ins/mayausd}
+ mv usr/autodesk/modules/maya/$_mayaver/mayausd.mod "$pkgdir/usr/autodesk/maya$_mayaver/modules/"
+ mv usr/autodesk/mayausd/maya$_mayaver/${pkgver}_*/mayausd/* "$pkgdir/usr/autodesk/maya$_mayaver/plug-ins/mayausd/"
}