[aur-general] SweetHome3D related PKGBUILDs
Alexis BRENON
brenon.alexis+arch at gmail.com
Wed Jan 8 15:05:45 UTC 2020
Hi all,
By default, SweetHome3D comes with only a few 3D models to add to your
scene. Some are advertised on its site but it requires that you download
them manually and then add them to SweetHome3D.
I think it could be nice to have some assets package in AUR which download
and add assets automatically. 8 different libraries are provided, some
which are specific (for trees or for persons), and they aren't so
lightweight so I choose to make 1 package for each library. Hence I wrote
some scripts which generate PKGBUILDs and .install script for each package:
https://github.com/AlexisBRENON/3dmodels-pkgbuild
Here is the PKGBUILD for one of them to show you an example:
---
# Maintainer: Alexis BRENON <brenon.alexis+arch at gmail dot com>
pkgname=sweethome3d-3dmodels-contributions
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:FreeArtLicence")
optdepends=("sweethome3d: Models rendering"
"sweethome3d-3dmodels-blendswap-cc0: More 3D models"
"sweethome3d-3dmodels-blendswap-ccby: More 3D models"
"sweethome3d-3dmodels-katorlegaz: More 3D models"
"sweethome3d-3dmodels-lucapresidente: More 3D models"
"sweethome3d-3dmodels-reallusion: 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-Contributions-1.7.1.zip
")
sha1sums=("5db3609b754747b018fc5362cc5421271656ceca")
package() {
mkdir -p $pkgdir/usr/share/eteks/sweethome3d/furniture/contributions
I=0
for lib in "${srcdir}"/*.sh3f; do
install -Dm644 "$lib"
"$pkgdir/usr/share/eteks/sweethome3d/furniture/contributions/contributions-$(printf
"%02d" "$I").sh3f"
I=$(( I + 1 ))
done
install -Dm644 "${srcdir}"/LICENSE*
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
---
Do you think that this kind of packages would be useful and fit in the
rules of submissions?
Kind,
Alexis.
More information about the aur-general
mailing list