summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dcd67c48bc73429f81fa8fbbc8afb6257174bd8c (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
34
# Maintainer: soloturn@gmail.com

_basename=smithay
pkgname="$_basename-git"
pkgver=v0.3.0.r1255.gc85e1e52
pkgrel=1
pkgdesc="A smithy for rusty wayland compositors"
arch=('i686' 'x86_64')
url="https://github.com/Smithay/smithay"
license=('MIT')
depends=()
makedepends=('git' 'rust')
conflicts=("$_basename")
provides=("$_basename")

source=("$pkgname::git+https://github.com/Smithay/$_basename.git")
sha1sums=('SKIP')

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

build() {
  cd ${pkgname}/anvil
  cargo build
  # to run:
  # cargo run -- --winit
}

package() {
  cd ${pkgname}
}