summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9bf5c1999c341cc6e98992b401aa7dfea614ed40 (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:  Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=workstation-git
pkgver=r9.367a6bb
pkgrel=1
pkgdesc='A nifty commandline tool to manage your workstation'
arch=('i686' 'x86_64')
url='https://github.com/amar-laksh/workstation'
license=('GPL2')
provides=('workstation')
depends=('libnotify' 'notify-osd' 'opencv2')
makedepends=('cargo' 'opencv2')
source=("workstation::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/workstation"
  echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}

build() {
  cd workstation
  cargo build --release
}

package() {
  cd workstation
  install -Dm755 target/release/workstation "${pkgdir}/opt/workstation/workstation"
  install -Dm644 haarcascade_frontalface_alt.xml -t "${pkgdir}/opt/workstation/"
  mkdir -p "${pkgdir}/usr/bin/"
  ln -s /opt/workstation/workstation "${pkgdir}/usr/bin/workstation"
}