diod: bump 1.0.24, multiarch, old version removed

This commit is contained in:
Denis Knauf 2015-10-01 22:23:17 +02:00
parent aec3fd2aed
commit 13675c093b

View file

@ -20,7 +20,7 @@ DEPENDENCIES="
src_configure() {
local opts=""
if option lua; then
CFLAGS="${CFLAGS} -I/usr/include/lua5.1"
CFLAGS="${CFLAGS} -I/usr/$(exhost --target)/include/lua5.1"
opts=--with-lua-suffix=5.1
fi
econf $opts
@ -37,17 +37,17 @@ diod_mv() {
src_install() {
default_src_install
dodir /usr/bin
diod_mv /usr/bin /usr/sbin/dtop /usr/sbin/diod{cat,date,ls,showmount}
dodir /usr/$(exhost --target)/bin
diod_mv /usr/$(exhost --target)/bin /usr/$(exhost --target)/sbin/dtop /usr/$(exhost --target)/sbin/diod{cat,date,ls,showmount}
if option systemd; then
install_systemd_files
fi
insinto /usr/sbin
insinto /usr/$(exhost --target)/sbin
INSOPTIONS="-m0755"
hereins mount.diod <<EOF
#!/usr/bin/env sh
exec /usr/sbin/diodmount -n "$@"
exec /usr/$(exhost --target)/sbin/diodmount -n "$@"
EOF
}