From ff005b90784a4ba99ea790ea15363a223d309933 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Sat, 15 Oct 2016 17:49:52 -0300 Subject: makehuman: add new package to [pcr] --- pcr/makehuman/PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++ pcr/makehuman/makehuman.desktop | 10 +++++++++ pcr/makehuman/makehuman.sh | 3 +++ 3 files changed, 60 insertions(+) create mode 100644 pcr/makehuman/PKGBUILD create mode 100644 pcr/makehuman/makehuman.desktop create mode 100644 pcr/makehuman/makehuman.sh (limited to 'pcr') diff --git a/pcr/makehuman/PKGBUILD b/pcr/makehuman/PKGBUILD new file mode 100644 index 000000000..e381a501d --- /dev/null +++ b/pcr/makehuman/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer (Arch): Lukas Jirkovsky +pkgname=makehuman +pkgver=1.1.0 +pkgrel=1 +pkgdesc="Parametrical modeling program for creating human bodies" +arch=('any') +url="http://www.makehuman.org/" +depends=('python2-numpy' 'python2-pyqt4' 'python2-opengl') +makedepends=('mercurial') +license=('AGPL3') +source=("hg+https://bitbucket.org/MakeHuman/makehuman#tag=$pkgver" \ + "makehuman.desktop" "makehuman.sh") +md5sums=('SKIP' + 'f54fdfbc6c783effc4624808d2547563' + '534db191b7c6cd5cf976c9a7089b524c') + +prepare() { + cd "$srcdir/makehuman" + + # make sure that we are using python2 + find . -type f -name "*.py" -exec sed -i 's/^#!.*python$/&2/' '{}' ';' + sed -i 's|python"|python2"|' buildscripts/build_prepare.py + + rm -rf "$srcdir/build" +} + +build() { + cd "$srcdir/makehuman/buildscripts" + python2 build_prepare.py "$srcdir/makehuman" "$srcdir/build" + + cd "$srcdir/build/makehuman" + # make sure that we are using python2 once again, because the build_prepare.py may have donwloaded some new files + find . -type f -name "*.py" -exec sed -i 's/^#!.*python$/&2/' '{}' ';' + # compile all modules so that they can be tracked by pacman + python2 -m compileall . + # and also optimize them + python2 -OO -m compileall . +} + +package() { + install -d -m755 "$pkgdir/opt/" + cp -a "$srcdir/build/makehuman" "$pkgdir/opt/" + + install -D -m644 "$srcdir/build/makehuman/icons/makehuman.png" "$pkgdir/usr/share/pixmaps/makehuman.png" + install -D -m755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname" + install -D -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" +} diff --git a/pcr/makehuman/makehuman.desktop b/pcr/makehuman/makehuman.desktop new file mode 100644 index 000000000..062a75f74 --- /dev/null +++ b/pcr/makehuman/makehuman.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=MakeHuman +Comment=Model and pose a 3D humanoid +Comment[cs]=Tvorba humanoidních postav +Exec=makehuman +Icon=makehuman +Terminal=false +X-MultipleArgs=false +Type=Application +Categories=Graphics;3DGraphics; diff --git a/pcr/makehuman/makehuman.sh b/pcr/makehuman/makehuman.sh new file mode 100644 index 000000000..0aac066f2 --- /dev/null +++ b/pcr/makehuman/makehuman.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd /opt/makehuman +./makehuman.py $* -- cgit v1.2.3-54-g00ecf