2010-05-18 06:01:03 +00:00
|
|
|
# Template file for 'xbps-triggers'
|
|
|
|
pkgname=xbps-triggers
|
2013-07-11 06:54:15 +00:00
|
|
|
version=0.72
|
2012-07-14 21:22:19 +00:00
|
|
|
revision=1
|
2013-08-27 09:45:16 +00:00
|
|
|
bootstrap=yes
|
2013-02-25 18:13:44 +00:00
|
|
|
short_desc="The XBPS triggers for Void Linux"
|
2010-05-18 06:01:03 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-01 13:22:10 +00:00
|
|
|
homepage="http://code.google.com/p/xbps"
|
2011-07-20 16:53:13 +00:00
|
|
|
license="Simplified BSD"
|
2010-05-18 06:01:03 +00:00
|
|
|
|
2012-01-26 18:49:36 +00:00
|
|
|
do_install() {
|
2012-11-15 22:53:10 +00:00
|
|
|
_triggersdir=usr/libexec/${pkgname}
|
2010-11-04 12:53:46 +00:00
|
|
|
|
|
|
|
for f in ${FILESDIR}/*; do
|
|
|
|
_trigger=$(basename $f)
|
2011-07-09 22:03:17 +00:00
|
|
|
vinstall ${FILESDIR}/${_trigger} 750 ${_triggersdir}
|
|
|
|
echo "# end" >> ${DESTDIR}/${_triggersdir}/${_trigger}
|
2010-05-18 06:01:03 +00:00
|
|
|
done
|
2012-11-17 10:10:51 +00:00
|
|
|
# Create compat symlink.
|
|
|
|
vmkdir var/db/xbps
|
2013-05-27 12:37:14 +00:00
|
|
|
cd ${DESTDIR}/var/db/xbps
|
|
|
|
ln -sf ../../../${_triggersdir} triggers
|
2010-05-18 06:01:03 +00:00
|
|
|
}
|
2013-04-11 07:10:30 +00:00
|
|
|
|
|
|
|
xbps-triggers_package() {
|
|
|
|
noarch=yes
|
|
|
|
pkg_install() {
|
2013-05-27 12:37:14 +00:00
|
|
|
vmove all
|
2013-04-11 07:10:30 +00:00
|
|
|
}
|
|
|
|
}
|