void-packages/srcpkgs/xbps-triggers/template
Juan RP 1a292fc754 xbps-triggers: pycompile: update ldconfig(8) cache if sbin/ldconfig exists.
ldconfig(8) cache must be updated to make python's find_library() really
find the required shared libraries; hence the cache must be up to date.

Close #914
2015-01-25 11:35:04 +01:00

23 lines
571 B
Text

# Template file for 'xbps-triggers'
pkgname=xbps-triggers
version=0.90
revision=1
noarch=yes
bootstrap=yes
short_desc="The XBPS triggers for Void Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.voidlinux.eu"
license="Simplified BSD"
do_install() {
_triggersdir=usr/libexec/${pkgname}
for f in ${FILESDIR}/*; do
_trigger=$(basename $f)
vinstall ${FILESDIR}/${_trigger} 750 ${_triggersdir}
echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger}
done
vmkdir var/db/xbps
cd ${DESTDIR}/var/db/xbps
ln -sf ../../../${_triggersdir} triggers
}