40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
# Template file for 'pbbuttonsd'
|
|
pkgname=pbbuttonsd
|
|
version=0.8.1a
|
|
revision=1
|
|
archs="ppc ppc-musl"
|
|
build_style=gnu-configure
|
|
# enabling ibam requires /var/lib/ibam to exist for it to start
|
|
# also we don't package ibam, so keep it disabled at least for now
|
|
configure_args="--with-oss=no --with-alsa=yes --with-ibam=no
|
|
--with-doxygen-docs=no"
|
|
hostmakedepends="pkg-config gettext"
|
|
makedepends="alsa-lib-devel libglib-devel"
|
|
depends="hdparm procps-ng"
|
|
short_desc="PBButtons daemon to handle special hotkeys of Apple computers"
|
|
maintainer="q66 <daniel@octaforge.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.berlios.de/software/pbbuttons"
|
|
distfiles="${SOURCEFORGE_SITE}/pbbuttons/pbbuttonsd-${version}.tar.gz"
|
|
checksum=254cc391bcb0a4a58a62224b4cca2b29fdf9ca174c1dc18ab0784f1a86465ed1
|
|
patch_args="-Np1"
|
|
|
|
post_extract() {
|
|
# fix cross builds (small build-only tool built with this)
|
|
vsed -i '/HOSTCC=/s/${CC}/cc/' configure
|
|
}
|
|
|
|
post_install() {
|
|
vsv pbbuttonsd
|
|
vinstall ${FILESDIR}/85-pbbuttonsd.rules 644 usr/lib/udev/rules.d/
|
|
}
|
|
|
|
pbbuttonsd-devel_package() {
|
|
depends="pbbuttonsd>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.a"
|
|
}
|
|
}
|