Advertisement
Guest User

makehuman 1.2.0 for arch linux

a guest
Jan 11th, 2021
327
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
  2. # Contributor: 3ED_0 <krzysztofas at protonmail>
  3.  
  4. pkgname=makehuman
  5. pkgver=1.2.0
  6. pkgrel=1
  7. pkgdesc="Parametrical modeling program for creating human bodies"
  8. arch=('any')
  9. url="http://www.makehumancommunity.org/"
  10. depends=('python-numpy' 'python-pyqt5' 'python-opengl')
  11. makedepends=('git' 'git-lfs')
  12. license=('AGPL3')
  13. source=("$pkgname::git+https://github.com/makehumancommunity/makehuman.git#tag=v$pkgver"
  14.         "makehuman.desktop"
  15.         "makehuman.sh")
  16. md5sums=('SKIP'
  17.          'f54fdfbc6c783effc4624808d2547563'
  18.          '534db191b7c6cd5cf976c9a7089b524c')
  19.  
  20. prepare() {
  21.   cd "$pkgname"
  22.  
  23.   rm -rf "$srcdir/build"
  24. }
  25.  
  26. build() {
  27.   cd "$srcdir/$pkgname/buildscripts"
  28.   cp "$srcdir/$pkgname/buildscripts/build.conf"{.example,}
  29.   python build_prepare.py "$srcdir/makehuman" "$srcdir/build"
  30.  
  31.   cd "$srcdir/build/makehuman"
  32.   # compile all modules so that they can be tracked by pacman
  33.   python -m compileall .
  34.   # and also optimize them
  35.   python -OO -m compileall .
  36. }
  37.  
  38. package() {
  39.   cd "$srcdir/build/"
  40.   install -d -m755 "$pkgdir/opt/"
  41.   bsdtar -cf - "makehuman" | bsdtar -xf - -C "$pkgdir/opt/"
  42.  
  43.   install -D -m644 "$srcdir/build/makehuman/icons/makehuman.png" "$pkgdir/usr/share/pixmaps/makehuman.png"
  44.   install -D -m755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
  45.   install -D -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  46. }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement