Skip to content
This repository
tree: 5003a59221
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (18 sloc) 0.627 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
post_install() {
    mv /usr/include/event2/event-config.h /usr/include/event2/event-config-64.h
    ln -s event-config-stub.h /usr/include/event2/event-config.h
}

post_upgrade() {
    if [ ! -r /usr/include/event2/event-config.h ]; then
        post_install
    else
        echo WARNING: libx32-libevent is upgraded before libevent,
        echo WARNING: you probably need to reinstall libx32-libevent.
    fi
}

post_remove() {
    if [ -r /usr/include/event2/event-config.h ]; then
        rm /usr/include/event2/event-config.h
        mv /usr/include/event2/event-config-64.h /usr/include/event2/event-config.h
    fi
}

Something went wrong with that request. Please try again.