summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7d5b6895ebdb02b991aa8cd07616db2acca08cf (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: lhark <lhark at hotmail dot fr>

pkgname=msiklm-git
_pkgname=msiklm
pkgver=20160421.04fd5ad
pkgrel=2
pkgdesc='A simple backlighting manager for MSI steelseries keyboards'
arch=('i686' 'x86_64')
license=('GPL3')
depends=('hidapi')
makedepends=('git')

url="https://github.com/Gibtnix/MSIKLM"
source=('msiklm-git::git://github.com/Gibtnix/MSIKLM')
md5sums=('SKIP')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

pkgver() {
    cd "${srcdir}/${pkgname}"
    git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
    cd "${srcdir}/${pkgname}"
    make
}

package() {
    cd "${srcdir}/${pkgname}"
    mkdir -p ${pkgdir}/usr/bin
    make INSTALLPREFIX=${pkgdir}/usr/bin install
}