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

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
}