24 lines
831 B
Bash
24 lines
831 B
Bash
# Template file for 'udevil'
|
|
pkgname=udevil
|
|
version=0.4.3
|
|
revision=3
|
|
build_style=gnu-configure
|
|
build_options="systemd"
|
|
hostmakedepends="pkg-config intltool"
|
|
configure_args="$(vopt_enable systemd)"
|
|
makedepends="libglib-devel libudev-devel"
|
|
conf_files="/etc/udevil/udevil.conf"
|
|
short_desc="CLI which mounts and unmounts removable devices without a password"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
license="GPL-3"
|
|
homepage="http://ignorantguru.github.io/udevil/"
|
|
distfiles="https://github.com/IgnorantGuru/udevil/archive/${version}.tar.gz"
|
|
checksum=c49d2644baf87182c160550d708f75fe1253a2ceb749148e9148d7f1cfbc6209
|
|
|
|
post_install() {
|
|
if [ "$build_option_systemd" ]; then
|
|
# Drop useless conf.d/devmon file.
|
|
rm -rf ${DESTDIR}/etc/conf.d
|
|
sed -e '/EnvironmentFile.*/d' -i ${DESTDIR}/usr/lib/systemd/system/devmon@.service
|
|
fi
|
|
}
|