summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec398689f5c9f20a56074f7b424102acb21eb87d (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: Elias Haddad <eliasynetto at gmail dot com>
_gitfolder="legion-y720-keyboard-backlight"
pkgname=legion-y720-keyboard-backlight-git
pkgver=1.0.r0.g01fab0b 
pkgrel=1
pkgdesc="Simple C program to control the keyboard backlight on the Lenovo Legion Y720"
arch=(x86_64)
url="https://github.com/threadexio/Legion-Y720-Keyboard-Backlight.git"
license=('MIT')
provides=(kbd-backlight)
conflicts=(kbd-backlight)
source=("${_gitfolder}::git+https://github.com/threadexio/Legion-Y720-Keyboard-Backlight.git")
md5sums=('SKIP')
depends=('libconfig')
makedepends=('git' 'ninja' 'gcc')

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

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

package() {
    cd "${srcdir}/${_gitfolder}"
    sudo make DESTDIR="$pkgdir/" install 
}