[aur-general] Can't upload a new package
Hello, I'm having trouble sending a new package to AUR. AUR replies "Missing arch variable in PKGBUILD". The PKGBUILD is pasted below; `namcap PKGBUILD` says nothing (i. e. all OK). ---- cut here ---- # Maintainer: Ivan Shapovalov <intelfx100@gmail.com> pkgname=power-management pkgver=11.4722a84 url="https://github.com/intelfx/power-management" pkgrel=1 pkgdesc="systemd-aware pm-powersave replacement" license=("GPL3") depends=() source=("power-management::git://github.com/intelfx/power-management#commit=4722a84") install="power-management.install" arch=(any) md5sums=('SKIP') package() { cd "power-management" DESTDIR="$pkgdir" ./install.sh } ---- cut here ---- Thanks. -- Ivan Shapovalov / intelfx /
On Apr 19, 2014 4:01 AM, "Ivan Shapovalov" <intelfx100@gmail.com> wrote:
Hello,
I'm having trouble sending a new package to AUR. AUR replies "Missing arch variable in PKGBUILD". The PKGBUILD is pasted below; `namcap PKGBUILD` says nothing (i. e. all OK).
---- cut here ---- # Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
pkgname=power-management pkgver=11.4722a84 url="https://github.com/intelfx/power-management" pkgrel=1 pkgdesc="systemd-aware pm-powersave replacement" license=("GPL3") depends=() source=("power-management::git://
github.com/intelfx/power-management#commit=4722a84")
install="power-management.install" arch=(any) md5sums=('SKIP')
package() { cd "power-management" DESTDIR="$pkgdir" ./install.sh } ---- cut here ----
Thanks.
-- Ivan Shapovalov / intelfx /
Isn't arch variable supposed to be in quotations? "any"
On Saturday 19 April 2014 at 04:12:35, Taylor Lookabaugh wrote:
On Apr 19, 2014 4:01 AM, "Ivan Shapovalov" <intelfx100@gmail.com> wrote:
Hello,
I'm having trouble sending a new package to AUR. AUR replies "Missing arch variable in PKGBUILD". The PKGBUILD is pasted below; `namcap PKGBUILD` says nothing (i. e. all OK).
---- cut here ---- # Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
pkgname=power-management pkgver=11.4722a84 url="https://github.com/intelfx/power-management" pkgrel=1 pkgdesc="systemd-aware pm-powersave replacement" license=("GPL3") depends=() source=("power-management::git://
github.com/intelfx/power-management#commit=4722a84")
install="power-management.install" arch=(any) md5sums=('SKIP')
package() {
cd "power-management" DESTDIR="$pkgdir" ./install.sh
} ---- cut here ----
Thanks.
-- Ivan Shapovalov / intelfx /
Isn't arch variable supposed to be in quotations? "any"
This does not matter. Quoting prevents word splitting and special treatment of characters, and there are no spaces and special characters in the word 'any'. Again, I'm able to install the package locally and it passes namcap checks both by PKGBUILD and by *.pkg.tar. -- Ivan Shapovalov / intelfx /
On Sat, 19 Apr 2014 at 13:01:33, Ivan Shapovalov wrote:
Hello,
I'm having trouble sending a new package to AUR. AUR replies "Missing arch variable in PKGBUILD". The PKGBUILD is pasted below; `namcap PKGBUILD` says nothing (i. e. all OK).
---- cut here ---- # Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
pkgname=power-management pkgver=11.4722a84 url="https://github.com/intelfx/power-management" pkgrel=1 pkgdesc="systemd-aware pm-powersave replacement" license=("GPL3") depends=() source=("power-management::git://github.com/intelfx/power-management#commit=4722a84") install="power-management.install" arch=(any) md5sums=('SKIP')
package() { cd "power-management" DESTDIR="$pkgdir" ./install.sh } ---- cut here ----
This is due to a bug in the AUR PKGBUILD parser. As a workaround, move the arch line before the source line. The next AUR release will use meta data instead of parsing the PKGBUILD which fixes all parser issues.
Thanks.
-- Ivan Shapovalov / intelfx /
On Saturday 19 April 2014 at 18:19:58, Lukas Fleischer wrote:
On Sat, 19 Apr 2014 at 13:01:33, Ivan Shapovalov wrote:
Hello,
I'm having trouble sending a new package to AUR. AUR replies "Missing arch variable in PKGBUILD". The PKGBUILD is pasted below; `namcap PKGBUILD` says nothing (i. e. all OK).
---- cut here ---- # Maintainer: Ivan Shapovalov <intelfx100@gmail.com>
pkgname=power-management pkgver=11.4722a84 url="https://github.com/intelfx/power-management" pkgrel=1 pkgdesc="systemd-aware pm-powersave replacement" license=("GPL3") depends=() source=("power-management::git://github.com/intelfx/power-management#commi t=4722a84") install="power-management.install" arch=(any) md5sums=('SKIP')
package() {
cd "power-management" DESTDIR="$pkgdir" ./install.sh
} ---- cut here ----
This is due to a bug in the AUR PKGBUILD parser. As a workaround, move the arch line before the source line.
The next AUR release will use meta data instead of parsing the PKGBUILD which fixes all parser issues.
Thanks.
It worked. Thank you for the advice. -- Ivan Shapovalov / intelfx /
participants (3)
-
Ivan Shapovalov
-
Lukas Fleischer
-
Taylor Lookabaugh