prepare packaging

This commit is contained in:
JOLIMAITRE Matthieu 2024-08-07 00:41:23 +02:00
parent 6a5de60f19
commit b1b86fd74b
4 changed files with 45 additions and 0 deletions

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