# PK_VERSION
# PK_DIRNAME
pkunpack() {
if ! (copy "$DOWNLOAD_PACKET_DIR" "$UNPACK_PACKET_DIR" \
&& rm -f -r "$UNPACK_PACKET_DIR/$PK_DIRNAME/.git"); then
return 1
fi
if [ -z "$PK_VERSION" ]; then
PK_VERSION="$(pkhook_version)"
[ $? -eq 0 ] || return 1
cd "$DOWNLOAD_PACKET_DIR/$PK_DIRNAME"
local COMMIT=`git rev-parse HEAD`
echo "$PK_VERSION-$COMMIT" > "$UNPACK_PACKET_DIR/version-$NAME"
return 0
}