Compare commits

...

3 commits

Author SHA1 Message Date
b1b86fd74b prepare packaging 2024-08-07 00:41:23 +02:00
6a5de60f19 prepare for initial release 2024-08-07 00:40:35 +02:00
04b7884854 add readme 2024-08-07 00:39:04 +02:00
8 changed files with 53 additions and 4 deletions

2
Cargo.lock generated
View file

@ -1456,7 +1456,7 @@ dependencies = [
[[package]]
name = "timeurs"
version = "0.1.0"
version = "1.0.0"
dependencies = [
"async-channel",
"gtk4",

View file

@ -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
View file

@ -0,0 +1,4 @@
Timeurs
=======
minimal GUI for timing.

1
packaging/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/root

30
packaging/PKGBUILD Normal file
View 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
View file

@ -0,0 +1,6 @@
#!/bin/sh
cargo
rm -fr target
mkdir -p target

View 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

View file

@ -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();