Rework
This commit is contained in:
13
pkg/arch/local/.SRCINFO
Normal file
13
pkg/arch/local/.SRCINFO
Normal file
@@ -0,0 +1,13 @@
|
||||
pkgbase = screencfg
|
||||
pkgdesc = Automatically configure your screen setup
|
||||
pkgver = 0.1.r0.g1e8bf1d
|
||||
pkgrel = 1
|
||||
url = https://github.com/hakoerber/screencfg
|
||||
arch = x86_64
|
||||
license = GPL-3.0-only
|
||||
makedepends = cargo
|
||||
makedepends = git
|
||||
depends = glibc
|
||||
depends = gcc-libs
|
||||
|
||||
pkgname = screencfg
|
||||
4
pkg/arch/local/.gitignore
vendored
Normal file
4
pkg/arch/local/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
*
|
||||
!/.gitignore
|
||||
!/PKGBUILD
|
||||
!/.SRCINFO
|
||||
40
pkg/arch/local/PKGBUILD
Normal file
40
pkg/arch/local/PKGBUILD
Normal file
@@ -0,0 +1,40 @@
|
||||
# Maintainer: Hannes Körber <hannes@hkoerber.de>
|
||||
pkgname='screencfg'
|
||||
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')
|
||||
source=()
|
||||
sha256sums=()
|
||||
|
||||
prepare() {
|
||||
cd "../../../.."
|
||||
pwd
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "../../../.."
|
||||
pwd
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
export CARGO_TARGET_DIR=target
|
||||
cargo build --frozen --release
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "../../../.."
|
||||
pwd
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
cargo test --frozen
|
||||
}
|
||||
|
||||
package() {
|
||||
pwd
|
||||
cd "../../../.."
|
||||
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname/-git}"
|
||||
}
|
||||
Reference in New Issue
Block a user