prepare packaging
This commit is contained in:
parent
6a5de60f19
commit
b1b86fd74b
4 changed files with 45 additions and 0 deletions
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
|
Loading…
Add table
Add a link
Reference in a new issue