void-packages/srcpkgs/mouseemu/template

30 lines
770 B
Bash

# Template file for 'mouseemu'
pkgname=mouseemu
version=0.15
revision=1
wrksrc=${pkgname}
depends="procps-ng"
short_desc="Emulate mouse buttons and mouse wheel"
maintainer="q66 <daniel@octaforge.org>"
license="GPL-2.0-or-later"
homepage="http://geekounet.org/powerbook/"
distfiles="http://deb.debian.org/debian/pool/main/m/${pkgname}/${pkgname}_${version}.orig.tar.gz"
checksum=bbef220a814931f8ee482c82dfd63ad0a8ec895fc7df7bac1a1ada880d59af59
conf_files="/etc/sv/mouseemu/conf"
patch_args="-Np1"
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) depends+=" dmidecode";;
esac
do_build() {
${CC} ${CFLAGS} ${LDFLAGS} -o mouseemu mouseemu.c
}
do_install() {
vinstall ${FILESDIR}/99-mouseemu.rules 644 usr/lib/udev/rules.d/
vbin mouseemu
vman mouseemu.8
vsv mouseemu
}