summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9165ae3d89c47b392c8836f92d755a46aeda489 (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
33
# Maintainer: Wojciech Kluczka <wojciech.kluczka@gmail.com>
pkgname=perceptia-git
pkgver=0.5.0.r0.g5710c8f
pkgrel=1
pkgdesc='Dynamic window manager with support for Wayland'
arch=('i686' 'x86_64')
url="https://github.com/perceptia/${pkgname%-git}"
license=('MPL-2.0' 'MIT')
depends=('dbus' 'libdrm' 'libgl' 'libegl' 'udev' 'libxkbcommon')
makedepends=('git' 'rust' 'cargo')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "${srcdir}/${pkgname%-git}"

    cargo build --release --manifest-path ./perceptia/perceptia/Cargo.toml
    cargo build --release --manifest-path ./perceptia/perceptiactl/Cargo.toml
}

package() {
    cd "${srcdir}/${pkgname%-git}"

    install -Dm755 target/release/perceptia    "${pkgdir}/usr/bin/perceptia"
    install -Dm755 target/release/perceptiactl "${pkgdir}/usr/bin/perceptiactl"
}