summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis BRENON2020-01-17 12:15:16 +0100
committerAlexis BRENON2020-01-17 12:15:16 +0100
commitb0e98963b86b7789109e59ee3a0791e28f92b921 (patch)
tree70dc69bba7ef51c691e9d6fd4b291fcfbb22c0c9
downloadaur-b0e98963b86b7789109e59ee3a0791e28f92b921.tar.gz
Version 1.7.1-1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD29
-rw-r--r--sweethome3d-3dmodels-reallusion.install23
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d0c111b5578
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = sweethome3d-3dmodels-reallusion
+ pkgdesc = Free 3D models advertised on SweetHome3D website
+ pkgver = 1.7.1
+ pkgrel = 1
+ url = http://www.sweethome3d.com/freeModels.jsp
+ install = sweethome3d-3dmodels-reallusion.install
+ arch = any
+ license = custom:CC-BY
+ optdepends = sweethome3d: Models rendering
+ optdepends = sweethome3d-3dmodels-blendswap-cc0: More 3D models
+ optdepends = sweethome3d-3dmodels-blendswap-ccby: More 3D models
+ optdepends = sweethome3d-3dmodels-contributions: More 3D models
+ optdepends = sweethome3d-3dmodels-katorlegaz: More 3D models
+ optdepends = sweethome3d-3dmodels-lucapresidente: More 3D models
+ optdepends = sweethome3d-3dmodels-scopia: More 3D models
+ optdepends = sweethome3d-3dmodels-trees: More 3D models
+ source = http://prdownloads.sourceforge.net/sweethome3d/3DModels-Reallusion-1.7.1.zip
+ sha1sums = 738507d19d5670215e52616c9ab14c0abff17d5e
+
+pkgname = sweethome3d-3dmodels-reallusion
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8384856de4e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Alexis BRENON <brenon.alexis+arch at gmail dot com>
+pkgname=sweethome3d-3dmodels-reallusion
+pkgver=1.7.1
+pkgrel=1
+pkgdesc="Free 3D models advertised on SweetHome3D website"
+arch=('any')
+url="http://www.sweethome3d.com/freeModels.jsp"
+license=("custom:CC-BY")
+optdepends=("sweethome3d: Models rendering"
+"sweethome3d-3dmodels-blendswap-cc0: More 3D models"
+"sweethome3d-3dmodels-blendswap-ccby: More 3D models"
+"sweethome3d-3dmodels-contributions: More 3D models"
+"sweethome3d-3dmodels-katorlegaz: More 3D models"
+"sweethome3d-3dmodels-lucapresidente: More 3D models"
+"sweethome3d-3dmodels-scopia: More 3D models"
+"sweethome3d-3dmodels-trees: More 3D models")
+install="$pkgname.install"
+source=("http://prdownloads.sourceforge.net/sweethome3d/3DModels-Reallusion-1.7.1.zip")
+sha1sums=("738507d19d5670215e52616c9ab14c0abff17d5e")
+
+package() {
+ mkdir -p $pkgdir/usr/share/eteks/sweethome3d/furniture/reallusion
+ I=0
+ for lib in "${srcdir}"/*.sh3f; do
+ install -Dm644 "$lib" "$pkgdir/usr/share/eteks/sweethome3d/furniture/reallusion/reallusion-$(printf "%02d" "$I").sh3f"
+ I=$(( I + 1 ))
+ done
+ install -Dm644 "${srcdir}"/LICENSE* "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/sweethome3d-3dmodels-reallusion.install b/sweethome3d-3dmodels-reallusion.install
new file mode 100644
index 00000000000..b03b8cab627
--- /dev/null
+++ b/sweethome3d-3dmodels-reallusion.install
@@ -0,0 +1,23 @@
+set -eu
+user_path=".eteks/sweethome3d/furniture/"
+
+# arg 1: the new package version
+post_install() {
+ find /home/* -maxdepth 0 -type d \! -user root -print0 | while IFS= read -r -d '' user_home; do
+ mkdir -p "${user_home}/${user_path}"
+ for lib in /usr/share/eteks/sweethome3d/furniture/reallusion/*.sh3f; do
+ ln -s "$lib" "${user_home}/${user_path}/"
+ done
+ done
+}
+
+# arg 1: the old package version
+pre_remove() {
+ find /home/* -maxdepth 0 -type d \! -user root -print0 | while IFS= read -r -d '' user_home; do
+ rm -f "${user_home}/${user_path}/reallusion-*.sh3f"
+ (
+ cd "${user_home}" && rmdir --ignore-fail-on-non-empty -p "${user_path}"
+ )
+ done
+}
+