You are not logged in.

#1 2008-03-03 19:19:10

lenni
Member
From: London, UK
Registered: 2007-09-21
Posts: 95

Escaping underscores in source URLs

Hi I want to package the Android Development Kit and have met the following problem when modifying the PKGBUILD: The URL

contains underscores. If I replace android-sdk and m5-rc15 with $pkgname and $pkgver respectively makepkg fails due to a wrong URL. I believe it thinks the variables are called pkgname_ and pkgver_.

Is there a way to escape underscores in the PKGBUILD?

Offline

#2 2008-03-03 19:56:44

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Escaping underscores in source URLs

Use the usual bash method - wrap the variable name in curly brackets. I.e. ${pkgname} instead of $pkgname

Offline

Board footer

Powered by FluxBB