Well, with the peeing, I think you need to rule out a medical problem, first. This will mean a vet visit.
For the attention thing...you're gonna have to become "The Good Thing Person", which means, she needs to see you as a person that good things happen around you...food, treats, toys, brushing, petting and all that. It will take time to lure her close to you for handling, but it can be done. Lure her close with canned food or treats. Make her come closer and closer to you before she can have the 'goodie'. When you begin to pet/touch her, don't reach for her head, reach for her shoulder or rump first. Eventually, she will learn that you 'feel good' when you touch/pet/scrubble her fur and she will enjoy being near you so you can 'massage' her.
It will take time and persistence. It seems like you need to treat her as a feral needing to be tamed. Not really 'tamed', but getting her used to your contact and that it is good...so she will seek you out and stop moving away from you.
Best of luck,