mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-12 08:28:32 +02:00
feat: Add .desktop files and add PKGBUILD for arch
This commit is contained in:
parent
1868e26a2f
commit
fc22b5c807
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,6 +4,9 @@ debug/
|
||||||
target/
|
target/
|
||||||
flatpak/build
|
flatpak/build
|
||||||
flatpak/.flatpak-builder
|
flatpak/.flatpak-builder
|
||||||
|
flatpak/export
|
||||||
|
flatpak/reset.flatpak
|
||||||
|
pkg/
|
||||||
|
|
||||||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
|
||||||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
|
||||||
|
|
20
PKGBUILD
Normal file
20
PKGBUILD
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
# Maintainer: Fabio Lenherr <dashie@dashie.org>
|
||||||
|
|
||||||
|
pkgname=reset
|
||||||
|
pkgver=0.1
|
||||||
|
pkgrel=1
|
||||||
|
arch=('x86_64')
|
||||||
|
pkgdir="/usr/bin/${pkgname}"
|
||||||
|
pkgdesc="A wip universal Linux settings application."
|
||||||
|
depends=('rust' 'gtk4' 'dbus' 'gendesk')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cargo build --release
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ..
|
||||||
|
install -Dm755 target/release/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
|
||||||
|
install -Dm644 "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||||
|
install -Dm644 "src/resources/icons/ReSet.svg" "$pkgdir/usr/share/pixmaps/ReSet.svg"
|
||||||
|
}
|
11
flatpak/org.xetibo.ReSet.desktop
Normal file
11
flatpak/org.xetibo.ReSet.desktop
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=ReSet
|
||||||
|
GenericName=SettingsApplication
|
||||||
|
GenericName[de]=SettingsApplikation
|
||||||
|
Exec=reset
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Keywords=settings;gtk;
|
||||||
|
Icon=org.xetibo.ReSet
|
||||||
|
Categories=Utility;GTK;
|
||||||
|
StartupNotify=false
|
|
@ -27,7 +27,9 @@
|
||||||
"build-commands": [
|
"build-commands": [
|
||||||
"cargo --offline fetch --manifest-path Cargo.toml --verbose",
|
"cargo --offline fetch --manifest-path Cargo.toml --verbose",
|
||||||
"cargo --offline build --release --verbose",
|
"cargo --offline build --release --verbose",
|
||||||
"install -Dm755 ./target/release/reset -t /app/bin/"
|
"install -Dm755 ./target/release/reset -t /app/bin/",
|
||||||
|
"install -Dm644 ./src/resources/icons/ReSet.svg /app/share/icons/hicolor/scalable/apps/org.xetibo.ReSet.svg",
|
||||||
|
"install -Dm644 ./flatpak/org.xetibo.ReSet.desktop /app/share/applications/org.xetibo.ReSet.desktop"
|
||||||
],
|
],
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
|
|
11
reset.desktop
Normal file
11
reset.desktop
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Desktop Entry]
|
||||||
|
Name=ReSet
|
||||||
|
GenericName=SettingsApplication
|
||||||
|
GenericName[de]=SettingsApplikation
|
||||||
|
Exec=reset
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Keywords=settings;gtk;
|
||||||
|
Icon=ReSet
|
||||||
|
Categories=Utility;GTK;
|
||||||
|
StartupNotify=false
|
Loading…
Reference in a new issue