You are not logged in.
Pages: 1
I'm trying to get a Mercurial PKGBUILD (AUR) to work for the s2-liplianin DVB drivers, and work it does, but only when I build it on manually (i.e. no Yaourt).
With Yaourt I get the following error:
==> Searching new CVS/SVN/GIT revision for s2-liplianin-hg
==> retrieving latest revision number from hg... make: *** No rule to make target `clean'. Stop.
abort: There is no Mercurial repository here (.hg not found)!
abort: There is no Mercurial repository here (.hg not found)!
abort: There is no Mercurial repository here (.hg not found)!
==> ERROR: unable to retrieve revision number
==> Determining latest hg revision...
abort: There is no Mercurial repository here (.hg not found)!
Error: Makepkg was unable to build s2-liplianin-hg package.
And here is the actual PKGBUILD and .install ( or with pretty syntax highlighting here (PKGBUILD) and here (.install))
# Maintainer: Matias Korhonen <webadmin@draco-vulgaris.net>
pkgname=s2-liplianin-hg
pkgver=11145
pkgrel=2
pkgdesc="DVB drivers for Linux"
arch=('i686' 'x86_64')
url="http://mercurial.intuxication.org/hg/s2-liplianin"
license=('GPL3')
depends=()
makedepends=('mercurial')
optdepends=()
provides=('s2-liplianin')
conflicts=()
source=()
md5sums=()
install="s2-liplianin-hg.install"
_hgroot="http://mercurial.intuxication.org/hg/s2-liplianin"
_hgrepo="s2-liplianin"
build() {
cd ${startdir}/src
if [ -d ${_hgrepo} ]; then
cd ${startdir}/src/${_hgrepo}
hg pull -u
else
hg clone ${_hgroot}${_hgrepo} || return 1
cd ${startdir}/src/${_hgrepo}
fi
msg "Mercurial checkout done or server timeout"
msg "Starting make..."
cp -R ${startdir}/src/${_hgrepo} ${startdir}/src/${_hgrepo}-build
cd ${startdir}/src/${_hgrepo}-build
make || return 1
make DESTDIR=${startdir}/pkg install
rm -rf ${startdir}/src/${_hgrepo}-build
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
echo ">>> You will need to recompile these modules"
echo ">>> everytime the kernel is upgraded or updated"
}
op=$1
shift
$op $*
I'd like to know if this is a problem with Yaourt or with my PKGBUILD. Any help would be appreciated. Also if someone more experienced would like to take over this package, I'd be quite happy to hand it over.
Offline
I think yaourt has difficulties with all -cvs,-svn,-hg, -bzr, -git and the like. It determines the $pkgver and creates some subdirectories before makepkg changes the $pkgver. at least this is what I think from my experiences with users of my packgaes in AUR, I do not use yaourt myself.
I am currently building using your PKGBUILD and it seems to work so far. Some small things:
You can use ${srcdir} and ${pkgdir} in favour of ${startdir}/src and ${startdir}/pkg, and your installa file can be shortened to
post_upgrade() {
echo ">>> You will need to recompile these modules"
echo ">>> everytime the kernel is upgraded or updated"
}
Offline
Thanks.
Offline
Pages: 1