summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4845ce4e3580c07500f5329c2ee75313fa162335 (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
# Maintainer: NagiNikaido <naginikaido@foxmail.com>

pkgname=interception-fnkeys-xiaoxin
pkgver=0.1.0
pkgrel=1
pkgdesc="An Interception tools plugin fixing failed Fn-key mappings on latest Lenovo XiaoXin series."
arch=('x86_64')
url="https://github.com/NagiNikaido/Fix-Fnkeys-XiaoXin"
license=('MIT')
depends=('interception-tools')
makedepends=('cmake' 'gcc')

source=("https://github.com/NagiNikaido/Fix-Fnkeys-XiaoXin/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('07909cb2142ae9d4ee573632ebbadb90f0d728cf54329f0873fec0685aa46575')
_reponame=Fix-Fnkeys-XiaoXin

build() {
    cd ${srcdir}/${_reponame}-${pkgver}
    cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
    cmake --build build
}

package() {
    cd ${srcdir}/${_reponame}-${pkgver}/build

    make DESTDIR="$pkgdir/" install
}