What is the meaning of Bastardly?

Having been born out of marriage.

Of no use or purpose; useless; worthless.

In a bastardly manner.

Source: wiktionary.org