mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
17 lines
294 B
Text
17 lines
294 B
Text
|
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
|
||
|
}
|
||
|
|