update to support rust, added deps, and gitignore
This commit is contained in:
@@ -2,3 +2,4 @@ src/
|
|||||||
pkg/
|
pkg/
|
||||||
zshell/
|
zshell/
|
||||||
*.tar.zst
|
*.tar.zst
|
||||||
|
settings.json
|
||||||
|
|||||||
@@ -7,15 +7,18 @@ url='https://git.zach-dev.cc/zach/z-bar-qt'
|
|||||||
license=('GPL-3.0-only')
|
license=('GPL-3.0-only')
|
||||||
depends=('python' 'python-pillow' 'python-materialyoucolor' 'libnotify' 'swappy' 'dart-sass'
|
depends=('python' 'python-pillow' 'python-materialyoucolor' 'libnotify' 'swappy' 'dart-sass'
|
||||||
'app2unit' 'wl-clipboard' 'dconf' 'cliphist' 'python-typer')
|
'app2unit' 'wl-clipboard' 'dconf' 'cliphist' 'python-typer')
|
||||||
makedepends=('python-build' 'python-installer' 'python-hatch' 'python-hatch-vcs')
|
makedepends=('python-build' 'python-installer' 'python-hatch' 'python-hatch-vcs' 'cargo' 'rust' 'cmake' 'ninja')
|
||||||
source=("$pkgname::git+$url.git#branch=main")
|
source=("$pkgname::git+$url.git#branch=screenshot-tool")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${pkgname}/cli"
|
cd "${srcdir}/${pkgname}/cli"
|
||||||
python -m build --wheel --no-isolation
|
python -m build --wheel --no-isolation
|
||||||
|
|
||||||
cd ..
|
cd "${srcdir}/${pkgname}/zshell-img-tools"
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/
|
||||||
cmake --build build
|
cmake --build build
|
||||||
}
|
}
|
||||||
@@ -24,6 +27,10 @@ package() {
|
|||||||
cd "${srcdir}/${pkgname}/cli"
|
cd "${srcdir}/${pkgname}/cli"
|
||||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||||
|
|
||||||
cd ..
|
cd "${srcdir}/${pkgname}"
|
||||||
DESTDIR="$pkgdir" cmake --install build
|
DESTDIR="$pkgdir" cmake --install build
|
||||||
|
|
||||||
|
install -Dm755 \
|
||||||
|
"${srcdir}/${pkgname}/zshell-img-tools/target/release/zshell-img-tools" \
|
||||||
|
"${pkgdir}/usr/bin/zshell-img-tools"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user