Update PKGBUILD

This commit is contained in:
2024-11-10 15:52:48 +01:00
parent d3bdf46ecb
commit 80fb344128
5 changed files with 4 additions and 68 deletions

View File

@@ -1,17 +0,0 @@
pkgbase = screencfg-git
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
provides = screencfg
conflicts = screencfg
source = screencfg-git::git+https://github.com/hakoerber/screencfg#branch=master
sha256sums = SKIP
pkgname = screencfg-git

View File

@@ -1,4 +0,0 @@
*
!/.gitignore
!/PKGBUILD
!/.SRCINFO

View File

@@ -1,43 +0,0 @@
# Maintainer: Hannes Körber <hannes@hkoerber.de>
pkgname='screencfg-git'
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')
provides=('screencfg')
conflicts=('screencfg')
source=("${pkgname}::git+https://github.com/hakoerber/screencfg#branch=master")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${pkgname}"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "${pkgname}"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
check() {
cd "${pkgname}"
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen
}
package() {
cd "${pkgname}"
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname/-git}"
}

View File

@@ -1,6 +1,6 @@
pkgbase = screencfg-git
pkgdesc = Automatically configure your screen setup
pkgver = 0.1.r0.g1e8bf1d
pkgver = 0.1.r2.gd33f9b3
pkgrel = 1
url = https://github.com/hakoerber/screencfg
arch = x86_64
@@ -11,7 +11,7 @@ pkgbase = screencfg-git
depends = gcc-libs
provides = screencfg
conflicts = screencfg
source = screencfg-git::git+https://github.com/hakoerber/screencfg#branch=master
source = screencfg-git::git+https://github.com/hakoerber/screencfg#branch=develop
sha256sums = SKIP
pkgname = screencfg-git

View File

@@ -1,6 +1,6 @@
# Maintainer: Hannes Körber <hannes@hkoerber.de>
pkgname='screencfg-git'
pkgver=0.1.r0.g1e8bf1d
pkgver=0.1.r2.gd33f9b3
pkgrel=1
pkgdesc='Automatically configure your screen setup'
arch=('x86_64')
@@ -10,7 +10,7 @@ depends=('glibc' 'gcc-libs')
makedepends=('cargo' 'git')
provides=('screencfg')
conflicts=('screencfg')
source=("${pkgname}::git+https://github.com/hakoerber/screencfg#branch=master")
source=("${pkgname}::git+https://github.com/hakoerber/screencfg#branch=develop")
sha256sums=('SKIP')
pkgver() {