blob: fa5fa682cc2aa98e5011b1f0a21ba6882f2e39bd (
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
|
# Maintainer: Terra <terra@mcterra.id.au>
pkgname=cmmk_ctrl-git
_pkgname=cmmk_ctrl
pkgver=r12.c51e846
pkgrel=1
pkgdesc="Qt based RGB control application for MasterKeys devices"
arch=(i686 x86_64)
url="https://github.com/MCterra10/cmmk_ctrl"
license=('GPL')
depends=(libcmmk-git qt5-base qt5-svg hidapi)
makedepends=(git)
source=("git+https://github.com/MCterra10/cmmk_ctrl.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
(
set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$_pkgname"
make PREFIX="/usr" cmmk_ctrl
}
package() {
cd "$srcdir/$_pkgname"
make PREFIX="/usr" INSTALL_ROOT="$pkgdir/" install
install -d "$pkgdir/usr/share/doc/$_pkgname"
install -Dm755 "README.md" "$pkgdir/usr/share/doc/$_pkgname"
}
# vim: set ts=2 sw=2 et:
|