Files
screencfg/pkg/arch/local/PKGBUILD

41 lines
807 B
Bash
Raw Permalink Normal View History

2024-05-07 18:41:41 +02:00
# Maintainer: Hannes Körber <hannes@hkoerber.de>
2024-05-27 19:26:17 +02:00
pkgname='screencfg'
2024-05-07 18:41:41 +02:00
pkgver=0.1.r0.g1e8bf1d
pkgrel=1
pkgdesc='Automatically configure your screen setup'
arch=('x86_64')
url='https://github.com/hakoerber/screencfg'
license=('GPL-3.0-only')
depends=('glibc' 'gcc-libs')
makedepends=('cargo' 'git')
2024-05-27 19:26:17 +02:00
source=()
sha256sums=()
2024-05-07 18:41:41 +02:00
prepare() {
2024-05-27 19:26:17 +02:00
cd "../../../.."
pwd
2024-05-07 18:41:41 +02:00
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
2024-05-27 19:26:17 +02:00
cd "../../../.."
pwd
2024-05-07 18:41:41 +02:00
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
2024-05-27 19:26:17 +02:00
cd "../../../.."
pwd
2024-05-07 18:41:41 +02:00
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen
}
package() {
2024-05-27 19:26:17 +02:00
pwd
cd "../../../.."
2024-05-07 18:41:41 +02:00
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname/-git}"
}