abinfo "Unpacking .deb package ..."
dpkg -x "$SRCDIR"/bitcomet.deb \
    "$PKGDIR"

# FIXME: This should be fixed by 2.18.1 (or later?).
abinfo "Fixing up permissions ..."
find -type d -not -perm 755 -exec chmod -v 755 {} ";"
find -type f -not -perm 644 -exec chmod -v 644 {} ";"
chmod -v 755 "$PKGDIR"/usr/bin/*
