aports/testing/caps2esc/APKBUILD
Evan Johsnton 851f46125f testing/caps2esc: new aport
https://gitlab.com/interception/linux/plugins/caps2esc
Transforming the most useless key ever in the most useful one
2023-06-29 11:26:00 +02:00

37 lines
1,014 B
Text

# Contributor: Evan Johnston <evan@d2evs.net>
# Maintainer: Evan Johnston <evan@d2evs.net>
pkgname=caps2esc
pkgver=0.3.2
pkgrel=0
pkgdesc="Transforming the most useless key ever in the most useful one"
url="https://gitlab.com/interception/linux/plugins/caps2esc"
arch="all"
license="MIT"
depends="interception-tools"
makedepends="
cmake
linux-headers
samurai
"
source="https://gitlab.com/interception/linux/plugins/caps2esc/-/archive/v$pkgver/caps2esc-v$pkgver.tar.gz"
builddir="$srcdir/caps2esc-v$pkgver"
options="!check" # no tests
build() {
if [ "$CBUILD" != "$CHOST" ]; then
local crossopts="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=None \
$crossopts
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
1d077720131df92d38daa2a72432b02f3f43f3ad49028e9029a804c6cad218508a96b0c0b67a5ed2506f5b80ed062c01423032a7133218f37c60ad4f32c22147 caps2esc-v0.3.2.tar.gz
"