Implement discard()

Also added a PKGBUILD file for Arch Linux, which is where I intend to use it.