summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 16693338e055353e38f51aad9e6450f6c89a4722 (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
35
36
37
38
39
40
41
42
43
44
# Maintainer: Saren Arterius <saren@wtako.net>
# Upstream maintainer: Dmytro Kostiuchenko <edio@archlinux.us>
# Upstream Contributor: Gilrain <pierre.buard+aur gmail com>

pkgname=prismatik-psieg-git
pkgver=5.11.2.11.r2.gb30ce02
pkgrel=1
pkgdesc="A controller for usb driven LED backlights. An unofficial fork."
arch=('i686' 'x86_64')
url="https://github.com/psieg/Lightpack"
license=('GPL3')
depends=('qt5-serialport' 'libxkbcommon-x11')
makedepends=('git' 'libusb' 'pkg-config' 'qt5-base')
provides=('lightpack' 'prismatik')
conflicts=('prismatik' 'prismatik-git')
install='prismatik.install'
source=('git://github.com/psieg/Lightpack.git')
sha256sums=('SKIP')

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

build() {
  cd Lightpack/Software
  mv res/translations/ru_RU.ts res/translations/ru_RU.qm
  mv res/translations/uk_UA.ts res/translations/uk_UA.qm
  qmake-qt5 -recursive
  make
}

check() {
  cd Lightpack/Software
  make check
}

package() {
  cd Lightpack
  install -Dm755 "Software/bin/Prismatik" "${pkgdir}/usr/bin/prismatik"
  install -Dm644 "Software/dist_linux/deb/etc/udev/rules.d/93-lightpack.rules" "${pkgdir}/etc/udev/rules.d/93-lightpack.rules"
  install -Dm644 "README.md" "${pkgdir}/usr/share/doc/prismatik/README.md"
  install -Dm644 "Software/CHANGELOG" "${pkgdir}/usr/share/doc/prismatik/CHANGELOG"
}