-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download assets as a tar archive instead of using git-lfs
Upstream included git-lfs files in archives which makes this possible. See makehumancommunity/makehuman-assets#3
- Loading branch information
Showing
2 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,10 @@ | |
# Contributor: Lukas Jirkovsky <[email protected]> | ||
|
||
_assets_commit='1f2f63338613bcbefa2c1edbc1da91128e9e0451' | ||
_assets_repo='https://github.com/makehumancommunity/makehuman-assets.git' | ||
|
||
pkgname=makehuman | ||
pkgver=1.2.0 | ||
pkgrel=4 | ||
pkgrel=5 | ||
pkgdesc="Parametrical modeling program for creating human bodies" | ||
arch=('any') | ||
url="http://www.makehumancommunity.org/" | ||
|
@@ -16,36 +15,31 @@ depends=('python-numpy' | |
'python-opengl' | ||
'qt5-svg' | ||
'hicolor-icon-theme') | ||
makedepends=('git' 'git-lfs') | ||
optdepends=('python-pygments: IPython Qt Console plugin' | ||
'python-distro: distro detection for debug output') | ||
source=("$pkgname-$pkgver.tar.gz::https://github.com/makehumancommunity/makehuman/archive/refs/tags/v$pkgver.tar.gz" | ||
"git+${_assets_repo}#commit=$_assets_commit" | ||
"$pkgname-assets-$_assets_commit.tar.gz::https://github.com/makehumancommunity/makehuman-assets/archive/$_assets_commit.tar.gz" | ||
"$pkgname-188.patch::https://github.com/makehumancommunity/makehuman/pull/188.patch" | ||
"$pkgname-197.patch::https://github.com/makehumancommunity/makehuman/pull/197.patch" | ||
"$pkgname-multisampling.patch::https://github.com/makehumancommunity/makehuman/commit/c47b884028a24eb190d097e7523a3059e439cb6f.patch" | ||
"$pkgname-fix_77-2.patch::https://github.com/makehumancommunity/makehuman/commit/02c4269a2d4c57f68159fe8f437a8b1978b99099.patch") | ||
sha512sums=('e15acf536c99f2258abd317e3ff88e908d7447bea07be2c9b2319bd4b1847e76ad3035479e1d71ec5b086aa2442e7530436a6844a11e4c9bfd74abc26c3bd9f5' | ||
'SKIP' | ||
'4f4548d51c7eef528e4e6c79568810a13ad24d89a4fee49e9340462e634ac9118e62e0ea89fe86efa81ca9508d37d20ce21f6b0a559dbc9137302d9c88a381a4' | ||
'989810a56138db858bedce341b099986a5fb5f64a7ce1d275d71c0409c8027d868c5b5a165ee119ead25bfdcf556492ca5856abe274d3428723b5312582b1f0c' | ||
'c1be08b522c372c04836f37afd8e0245efada6dda3a20e8c2c5ebd75f196cc911270adb21dcf40b4eba754ba0c28045121eb7fe71fcf5cf0fdff4b72e3a8250d' | ||
'4b1c6c1e00cd95c38323699299b66829f9809bbf658359f08ec37f05dbf5da84d77502237665fad83dc2ad7fa73ec1ea20af1dedc99d155b8e40195192a1da0c' | ||
'5df80df28d734e4c81855112b42746dbc4586fa734c2a8432bfecb62864073b96baf6c588dbf65ada43990c47a135c6ae19a09dd909f233c8ea56f35a6c10091') | ||
|
||
prepare() { | ||
cd "$pkgname-assets" | ||
# Download git-lfs files | ||
git remote | grep -q github || git remote add github "$_assets_repo" | ||
git lfs install --local | ||
git lfs pull github | ||
|
||
# copy files from assets repo to makehuman data directory | ||
cp -r base/* "$srcdir/$pkgname-$pkgver/$pkgname/data/" | ||
cp -r "$pkgname-assets-$_assets_commit"/base/* "$pkgname-$pkgver/$pkgname/data/" | ||
|
||
# make build_prepare.py happy | ||
cd "$srcdir/$pkgname-$pkgver" | ||
mkdir -p .git | ||
|
||
# fix crash during startup | ||
patch -Np1 -i "$srcdir/$pkgname-188.patch" | ||
patch -Np1 --no-backup-if-mismatch -i "$srcdir/$pkgname-188.patch" | ||
|
||
# fix upstream issue #77 | ||
patch -Np1 -i "$srcdir/$pkgname-fix_77-2.patch" | ||
|
@@ -54,7 +48,7 @@ prepare() { | |
patch -Np1 -i "$srcdir/$pkgname-197.patch" | ||
|
||
# fix issue with multisampling | ||
patch -Np1 -i "$srcdir/$pkgname-multisampling.patch" | ||
patch -Np1 --no-backup-if-mismatch -i "$srcdir/$pkgname-multisampling.patch" | ||
|
||
# enable release build and set version information | ||
cd buildscripts | ||
|
@@ -71,8 +65,6 @@ prepare() { | |
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
# if build directory exists, remove it first | ||
[ -d "$srcdir/build" ] && rm -r "$srcdir/build" | ||
python buildscripts/build_prepare.py --nodownload . "$srcdir/build" | ||
|
||
# compile python bytecode | ||
|