2021-11-22 10:41:53 +01:00
|
|
|
# Description: Multi functional app to find duplicates, empty folders, similar images etc
|
|
|
|
# URL: https://github.com/qarmin/czkawka
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: rust
|
2022-07-30 12:05:52 +02:00
|
|
|
# Optional: gtk4
|
2021-11-22 10:41:53 +01:00
|
|
|
|
|
|
|
name=czkawka
|
2024-02-23 18:09:36 +01:00
|
|
|
version=7.0.0
|
2021-11-22 10:41:53 +01:00
|
|
|
release=1
|
|
|
|
source=(https://github.com/qarmin/czkawka/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
|
|
|
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
|
|
|
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
|
|
|
|
2022-07-30 12:05:52 +02:00
|
|
|
cargo build --bin czkawka_cli --release --manifest-path $name-$version/Cargo.toml
|
2021-11-22 10:41:53 +01:00
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/${name}_cli
|
2022-07-30 12:05:52 +02:00
|
|
|
|
|
|
|
if prt-get isinst gtk4; then
|
|
|
|
cargo build --bin czkawka_gui --release --locked --manifest-path $name-$version/Cargo.toml
|
|
|
|
install -Dm644 $SRC/czkawka-$version/data/com.github.qarmin.czkawka.desktop \
|
|
|
|
$PKG/usr/share/applications/com.github.qarmin.czkawka.desktop
|
|
|
|
install -Dm644 $SRC/czkawka-$version/data/icons/com.github.qarmin.czkawka.svg \
|
|
|
|
$PKG/usr/share/icons/hicolor/scalable/apps/com.github.qarmin.czkawka.svg
|
|
|
|
install -Dm644 $SRC/czkawka-$version/data/icons/com.github.qarmin.czkawka.Devel.svg \
|
|
|
|
$PKG/usr/share/icons/hicolor/scalable/apps/com.github.qarmin.czkawka.Devel.svg
|
|
|
|
install -Dm644 $SRC/czkawka-$version/data/icons/com.github.qarmin.czkawka-symbolic.svg \
|
|
|
|
$PKG/usr/share/icons/hicolor/scalable/apps/com.github.qarmin.czkawka-symbolic.svg
|
|
|
|
install -Dm644 $SRC/czkawka-$version/data/com.github.qarmin.czkawka.metainfo.xml \
|
|
|
|
$PKG/usr/share/metainfo/com.github.qarmin.czkawka.metainfo.xml
|
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/${name}_gui
|
|
|
|
fi
|
2021-11-22 10:41:53 +01:00
|
|
|
}
|