You are not logged in.
Hi,
I'm currently in the process to upload my packages to AUR4.
Package 'overlook-fing' builds and run fine on my system, but when I issue the 'git push' command, I get the following error:
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 1.91 KiB | 0 bytes/s, done.
Total 6 (delta 0), reused 0 (delta 0)
remote: Traceback (most recent call last):
remote: File "hooks/update", line 241, in <module>
remote: for fname in pkginfo['source']:
remote: KeyError: 'source'
remote: error: hook declined to update refs/heads/master
To aur@aur4.archlinux.org:/overlook-fing.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'aur@aur4.archlinux.org:/overlook-fing.git'
I don't understand what is this 'source' error as it was running fine until now.
Could someone explain where is my mistake. Here is the PKGBUILD :
# Contributor: Piotr Rogoża <rogoza dot piotr at gmail dot com>
# Created: 08/12/2010
# Maintainer: Salan54 <salan at fremenil dot com>
# Modified: 05/16/2013
pkgname=overlook-fing
pkgver=2.2
pkgrel=3
_altpkgname=fing
pkgdesc='The ultimate tool for network discovery and scanning'
arch=('i686' 'x86_64')
url='http://www.overlooksoft.com/'
license=('custom:Overlook Freeware license')
depends=('boost-libs' 'openssl' 'zlib')
options=(!strip)
case $CARCH in
i686)
source=("${pkgname}-${pkgver}.tgz::http://www.overlooksoft.com/packages/linux32/${pkgname}-${pkgver}.tgz"
"fingbox-sentinel.service"
"fingbox-sentinel.script"
)
md5sums=('fa523c841daa6963fda51a32b5972bcd' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')
;;
x86_64)
source=("${pkgname}-${pkgver}.tgz::http://www.overlooksoft.com/packages/linux64/${pkgname}-${pkgver}.tgz"
"fingbox-sentinel.service"
"fingbox-sentinel.script"
)
md5sums=('3e599f665442631657ebc8bef74d98e1' '013488a7afe3048524df6b7527faae69' '95dbef149b9d3a9ea3bac0bd0c77b343')
;;
esac
package() {
cd "$srcdir"
cp -r usr $pkgdir/
install -dm755 "${pkgdir}"/etc/${_altpkgname}
install -dm755 "${pkgdir}"/var/data/${_altpkgname}/{box,sentinel}
install -dm755 "${pkgdir}"/var/log/${_altpkgname}
install -Dm644 ./usr/share/${_altpkgname}/template/conf/sentinel.txt "${pkgdir}"/var/data/${_altpkgname}/sentinel/
install -Dm644 ./usr/share/${_altpkgname}/template/conf/*.properties "${pkgdir}"/etc/${_altpkgname}/
# systemd & fingbox-sentinel
install -Dm755 fingbox-sentinel.service "${pkgdir}"/usr/lib/systemd/system/fingbox-sentinel.service
install -Dm755 fingbox-sentinel.script "${pkgdir}"/usr/lib/systemd/scripts/fingbox-sentinel
# license
install -dm755 "${pkgdir}"/usr/share/licenses/${_altpkgname}
ln -s /usr/share/${_altpkgname}/doc/license.txt "${pkgdir}"/usr/share/licenses/${_altpkgname}/license
}
# vim:set ts=2 sw=2 et ft=sh tw=100:
Thanks for your answers.
Salan
Last edited by Salan54 (2015-06-08 14:56:39)
Offline
Try updating the PKGBUILD to use modern architecture-specific source arrays instead of bash conditionals.
man PKGBUILD | less -p "source \(array\)"
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks a lot. Using source_×86_64=.... did the job.
Marked as SOLVED
Offline