Files
void-packages/srcpkgs/xbps-triggers/template
classabbyamp 7e70ea35c9 xbps-triggers: add openjdk-profile trigger
This removes the need for each openjdk package to provide their own
/etc/profile.d entry, and fixes the conflict caused by each providing
their own.
2022-05-04 23:14:05 -04:00

23 lines
561 B
Bash

# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.122
revision=1
bootstrap=yes
short_desc="XBPS triggers for Void Linux"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="Public Domain"
homepage="https://voidlinux.org"
do_install() {
_triggersdir=usr/libexec/${pkgname}
for f in ${FILESDIR}/*; do
_trigger=$(basename $f)
vinstall ${FILESDIR}/${_trigger} 754 ${_triggersdir}
echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger}
done
vmkdir var/db/xbps
cd ${DESTDIR}/var/db/xbps
ln -sf ../../../${_triggersdir} triggers
}