projects/aports·blob master · refs

37 lines · 1014 B

1# Contributor: Evan Johnston <[email protected]>
2# Maintainer: Evan Johnston <[email protected]>
3pkgname=caps2esc
4pkgver=0.3.2
5pkgrel=0
6pkgdesc="Transforming the most useless key ever in the most useful one"
7url="https://gitlab.com/interception/linux/plugins/caps2esc"
8arch="all"
9license="MIT"
10depends="interception-tools"
11makedepends="
12 cmake
13 linux-headers
14 samurai
15 "
16source="https://gitlab.com/interception/linux/plugins/caps2esc/-/archive/v$pkgver/caps2esc-v$pkgver.tar.gz"
17builddir="$srcdir/caps2esc-v$pkgver"
18options="!check" # no tests
19
20build() {
21 if [ "$CBUILD" != "$CHOST" ]; then
22 local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
23 fi
24 cmake -B build -G Ninja \
25 -DCMAKE_INSTALL_PREFIX=/usr \
26 -DCMAKE_BUILD_TYPE=None \
27 $crossopts
28 cmake --build build
29}
30
31package() {
32 DESTDIR="$pkgdir" cmake --install build
33}
34
35sha512sums="
361d077720131df92d38daa2a72432b02f3f43f3ad49028e9029a804c6cad218508a96b0c0b67a5ed2506f5b80ed062c01423032a7133218f37c60ad4f32c22147 caps2esc-v0.3.2.tar.gz
37"