diff options
author | ibrokemypie | 2022-06-13 14:50:05 +1000 |
---|---|---|
committer | ibrokemypie | 2022-06-13 14:50:05 +1000 |
commit | 1063f2908231d397470675bb6d15d86399f67118 (patch) | |
tree | 0be900d11197aed3d4e653877303d80b1389d77c | |
parent | 97e85d91c4f7bec405c5c677f90ef31bc36ec3d4 (diff) | |
download | aur-1063f2908231d397470675bb6d15d86399f67118.tar.gz |
build with maturin
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 23 insertions, 8 deletions
@@ -1,6 +1,6 @@ pkgbase = bcml-git pkgdesc = Breath of the Wild Cross-Platform Mod Loader: A mod merger and manager for BOTW - pkgver = r1096.4068f61 + pkgver = r1178.95cab60 pkgrel = 1 url = https://github.com/NiceneNerd/BCML arch = x86_64 @@ -10,10 +10,11 @@ pkgbase = bcml-git makedepends = nodejs>=14.0.0 makedepends = mkdocs makedepends = mkdocs-material - makedepends = python-wheel - makedepends = python-build makedepends = python-installer makedepends = gendesk + makedepends = cargo-nightly + makedepends = maturin + makedepends = cmake depends = python>=3.7 depends = p7zip depends = python-numpy @@ -1,7 +1,7 @@ # Maintainer: ibrokemypie <ibrokemypie@bastardi.net> pkgname=bcml-git _name=BCML -pkgver=r1096.4068f61 +pkgver=r1178.95cab60 pkgrel=1 pkgdesc="Breath of the Wild Cross-Platform Mod Loader: A mod merger and manager for BOTW" arch=('x86_64') @@ -25,7 +25,18 @@ depends=( 'python-rstb' 'python-xxhash' ) -makedepends=('git' 'npm' 'nodejs>=14.0.0' 'mkdocs' 'mkdocs-material' 'python-wheel' 'python-build' 'python-installer' 'gendesk') +makedepends=( + 'git' + 'npm' + 'nodejs>=14.0.0' + 'mkdocs' + 'mkdocs-material' + 'python-installer' + 'gendesk' + 'cargo-nightly' + 'maturin' + 'cmake' +) optdepends=('cemu') source=('git+https://github.com/NiceneNerd/BCML' "${_name}.png::https://i.imgur.com/OiqKPx0.png") sha256sums=('SKIP' @@ -49,14 +60,17 @@ build() { npm run build cd "${srcdir}/${_name}" - mkdocs build -d bcml/assets/help + mkdocs build -d ./bcml/assets/help - python -m build --wheel --no-isolation + export RUSTUP_TOOLCHAIN=nightly + export CARGO_TARGET_DIR=target + + maturin build --release } package() { cd "${srcdir}/${_name}" - python -m installer --destdir="$pkgdir" dist/*.whl + python -m installer --destdir="$pkgdir" target/wheels/*.whl install -Dm644 "${srcdir}/${_name}.desktop" "$pkgdir/usr/share/applications/${_name}.desktop" install -Dm644 "${srcdir}/${_name}.png" "$pkgdir/usr/share/pixmaps/${_name}.png" } |