PKGBUILDs/aur/arm-mem-git/arm-mem.install

17 lines
294 B
Text
Raw Normal View History

post_install() {
echo "/usr/lib/libarmmem.so" >> /etc/ld.so.preload
}
post_upgrade() {
touch /etc/ld.so.preload
grep -q "/usr/lib/libarmmem.so" /etc/ld.so.preload
if [[ $? -ne 0 ]]; then
post_install
fi
}
pre_remove() {
sed '|/usr/lib/libarmmem.so|d' -i /etc/ld.so.preload
}