src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-as-needed.patch"
# do not install tkmolrender if not requested
if ! use tk; then
sed -e "s:.*/bin/molrender/tkmolrender.*::" \