# Maintainer: Francisco Lopes pkgname=interception-uswitch pkgver=0.2.0 pkgrel=1 pkgdesc='uswitch: an Interception Tools tool to redirect stdin to a muxer if logged user matches' arch=('x86_64') license=('MIT') url='https://gitlab.com/interception/linux/plugins/uswitch' depends=('interception-tools' 'glibc') makedepends=('boost' 'cmake' 'gcc') source=("https://gitlab.com/interception/linux/plugins/uswitch/-/archive/v${pkgver}/uswitch-v${pkgver}.tar.gz") sha256sums=('f162d0a634e1c8e330aeebbe29f3ef0ac913b506e17d06d9b4bb2a8788403b7e') build() { cd ${srcdir}/uswitch-v${pkgver} cmake -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake --build build } package() { cd ${srcdir}/uswitch-v${pkgver}/build make DESTDIR="$pkgdir/" install mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" install -m 644 ../LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}" mkdir -p "${pkgdir}/usr/share/doc/${pkgname}" install -m 644 ../README.md "${pkgdir}/usr/share/doc/${pkgname}" }