vp-build/srcpkgs/xbps-triggers/template

29 lines
619 B
Plaintext

# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.17
build_style=custom-install
short_desc="XBPS triggers"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://code.google.com/p/xbps"
license="BSD"
long_desc="
This package installs the triggers used by the XBPS binary packages."
noarch=yes
noextract=yes
base_chroot=yes
do_install()
{
_triggersdir=${DESTDIR}/var/db/xbps/triggers
install -d ${_triggersdir}
for f in ${FILESDIR}/*; do
_trigger=$(basename $f)
install -m750 ${FILESDIR}/${_trigger} \
${_triggersdir}/${_trigger}
echo "# end" >> ${_triggersdir}/${_trigger}
done
}