You are not logged in.

#1 2019-07-25 19:07:48

kunda
Member
Registered: 2019-01-06
Posts: 8

'[REQUEST] dust3d - open-source modeling software

Dust3D is a cross-platform open-source modeling software. It helps you create a 3D watertight model in seconds. Use it to speed up your character modeling in game making, 3D printing, and so on.

Website: https://dust3d.org
Github: https://github.com/huxingyi/dust3d
Latest release: https://github.com/huxingyi/dust3d/rele … .0-beta.21

Building: http://docs.dust3d.org/en/latest/builds.html

dependencies:
Qt5
cgal

Last edited by kunda (2019-07-25 19:08:13)

Offline

#2 2019-07-25 21:15:13

loqs
Member
Registered: 2014-03-06
Posts: 8,169

Re: '[REQUEST] dust3d - open-source modeling software

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# Maintainer: Your Name <youremail@domain.com>
pkgname=dust3d-git
_pkgname=dust3d
pkgver=1.0.0.beta.21.r16.gcc51fda
pkgrel=1
epoch=
pkgdesc="A cross-platform open-source modeling software."
arch=('x86_64')
url="https://dust3d.org/"
license=('MIT')
groups=()
depends=('cgal' 'qt5-base')
makedepends=('boost' 'git' 'qt5-tools')
checkdepends=()
optdepends=()
provides=($_pkgname)
conflicts=($_pkgname)
replaces=()
backup=()
options=()
install=
changelog=
source=("git+https://github.com/huxingyi/dust3d.git")
noextract=()
sha256sums=('SKIP')
validpgpkeys=()

pkgver() {
  cd $_pkgname
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $_pkgname
  sed -i 's/target.path = ./target.path = $$[QT_INSTALL_BINS]/' dust3d.pro
  qmake dust3d.pro \
    PREFIX=/usr \
    QMAKE_CFLAGS="${CFLAGS}" \
    QMAKE_CXXFLAGS="${CXXFLAGS}" \
    QMAKE_LFLAGS="${LDFLAGS}"
  make
}

package() {
  cd $_pkgname
  make INSTALL_ROOT="$pkgdir/" install
#  install -Dm 755 dust3d "$pkgdir"/usr/bin/dust3d
  install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
  install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
  sed -i 's/target.path = ./target.path = $$[QT_INSTALL_BINS]/' dust3d.pro

If target.path is not changed the install path will include the path to the build directory but using a sed call on a git package could easily break alternatively the commented out install call could be used.
If the alternate install call is not used the sed call should probably be split into prepare().  Unused variables not removed.

Last edited by loqs (2019-07-25 21:20:14)

Offline

Board footer

Powered by FluxBB