| 1 | # Contributor: Evan Johnston <[email protected]> |
| 2 | # Maintainer: Evan Johnston <[email protected]> |
| 3 | pkgname=caps2esc |
| 4 | pkgver=0.3.2 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="Transforming the most useless key ever in the most useful one" |
| 7 | url="https://gitlab.com/interception/linux/plugins/caps2esc" |
| 8 | arch="all" |
| 9 | license="MIT" |
| 10 | depends="interception-tools" |
| 11 | makedepends=" |
| 12 | cmake |
| 13 | linux-headers |
| 14 | samurai |
| 15 | " |
| 16 | source="https://gitlab.com/interception/linux/plugins/caps2esc/-/archive/v$pkgver/caps2esc-v$pkgver.tar.gz" |
| 17 | builddir="$srcdir/caps2esc-v$pkgver" |
| 18 | options="!check" # no tests |
| 19 | |
| 20 | build() { |
| 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 | |
| 31 | package() { |
| 32 | DESTDIR="$pkgdir" cmake --install build |
| 33 | } |
| 34 | |
| 35 | sha512sums=" |
| 36 | 1d077720131df92d38daa2a72432b02f3f43f3ad49028e9029a804c6cad218508a96b0c0b67a5ed2506f5b80ed062c01423032a7133218f37c60ad4f32c22147 caps2esc-v0.3.2.tar.gz |
| 37 | " |