Compare commits
3 commits
1ff18e0fbf
...
b1b86fd74b
Author | SHA1 | Date | |
---|---|---|---|
b1b86fd74b | |||
6a5de60f19 | |||
04b7884854 |
8 changed files with 53 additions and 4 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -1456,7 +1456,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "timeurs"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
dependencies = [
|
||||
"async-channel",
|
||||
"gtk4",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "timeurs"
|
||||
version = "0.1.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
4
README.md
Normal file
4
README.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
Timeurs
|
||||
=======
|
||||
|
||||
minimal GUI for timing.
|
1
packaging/.gitignore
vendored
Normal file
1
packaging/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/root
|
30
packaging/PKGBUILD
Normal file
30
packaging/PKGBUILD
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Maintainer: Matthieu Jolimaitre <matthieu@imagevo.fr>
|
||||
pkgname=timeurs
|
||||
pkgver=1.0.0
|
||||
pkgrel=1
|
||||
pkgdesc=""
|
||||
arch=('i686' 'x86_64')
|
||||
url=""
|
||||
license=('GPL')
|
||||
depends=('gtk4')
|
||||
makedepends=()
|
||||
source=("$pkgname-$pkgver.tar.gz")
|
||||
md5sums=()
|
||||
validpgpkeys=()
|
||||
|
||||
prepare() {
|
||||
cd $pkgname-$pkgver
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
6
packaging/package.sh
Normal file
6
packaging/package.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
cargo
|
||||
|
||||
rm -fr target
|
||||
mkdir -p target
|
8
packaging/timeurs.desktop
Normal file
8
packaging/timeurs.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Encoding=UTF-8
|
||||
Name=Timeurs
|
||||
Comment=Timer app
|
||||
Exec=/usr/bin/timeurs
|
||||
Terminal=false
|
||||
Categories=Tags;Describing;Application
|
|
@ -11,7 +11,7 @@ use state::{Cmd, State};
|
|||
fn main() -> glib::ExitCode {
|
||||
// Create a new application
|
||||
let app = Application::builder()
|
||||
.application_id("org.gtk_rs.HelloWorld2")
|
||||
.application_id("org.gtk_rs.timeurs")
|
||||
.build();
|
||||
|
||||
let (send, rec) = mpsc::channel();
|
||||
|
@ -99,7 +99,7 @@ fn build_ui(app: &Application, cmd: Sender<Cmd>) {
|
|||
|
||||
let window = ApplicationWindow::builder()
|
||||
.application(app)
|
||||
.title("My GTK App")
|
||||
.title("Timeu.rs")
|
||||
.child(&container)
|
||||
.build();
|
||||
window.present();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue