summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a34db73525b8e6947d9c641b91f0d59f09038a0c (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
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=way-cooler-bg-git
pkgver=0.3.0+75+g9dde66b
pkgrel=1
pkgdesc='The program that draws a background for Way Cooler (git)'
arch=(i686 x86_64)
url=https://github.com/way-cooler/way-cooler-bg
license=(MIT)
depends=(way-cooler)
makedepends=(rust)
provides=(way-cooler-bg)
conflicts=(way-cooler-bg)
source=(git+$url)
sha512sums=(SKIP)

pkgver() {
  cd ${pkgname/-git//}
  echo "$(grep '^version =' Cargo.toml | head -n1 | cut -d\" -f2)+$(git rev-list --count HEAD)+g$(git describe --always)"
}

build() {
  cd ${pkgname/-git//}
  cargo build --release
}

package() {
  cd ${pkgname/-git//}
  install -D target/release/wc-bg "$pkgdir"/usr/bin/way-cooler-bg
  install -Dm 644 -t "$pkgdir"/usr/share/licenses/way-cooler-bg LICENSE
}