summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2847005bf766b3895922195ed418b0005af15867 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: Pando85 <pando855@gmail.com>

pkgname=i3-auto-layout
pkgver=0.3.6
pkgrel=1
pkgdesc="Automatic, optimal tiling for i3wm "
arch=('i686' 'x86_64' 'armv6h' 'armv7h' 'aarch64')
url="https://github.com/pando85/i3-auto-layout"
license=('GPL')
depends=('i3-wm')
makedepends=('cargo'
             'git')
source=("git+$url.git#tag=v${pkgver}?signed")
validpgpkeys=('CD1DB60B2C8465FD50028EF6D381D73787B45B3E')
sha512sums=('SKIP')

prepare() {
    cd "$srcdir/i3-auto-layout"
    cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
    cd "$srcdir/i3-auto-layout"
    export RUSTUP_TOOLCHAIN=stable
    export CARGO_TARGET_DIR=target
    cargo build --frozen --release --all-features
}

package() {
    cd "$srcdir/i3-auto-layout"
    install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/i3-auto-layout"
}