Package Base Details: lua-luacov

Git Clone URL: https://aur.archlinux.org/lua-luacov.git (read-only, click to copy)
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 1
Popularity: 0.000000
First Submitted: 2019-06-18 12:30 (UTC)
Last Updated: 2024-03-27 23:07 (UTC)

Pinned Comments

alerque commented on 2020-02-24 07:48 (UTC)

PSA: I've started hosting this as a prebuilt package in my repository for those that want to install it using pacman without messing around with building from the AUR.

Latest Comments

alerque commented on 2021-01-07 13:41 (UTC)

@alex.shpilkin Good catch on the missing build time dependency. Those are hard to catch when (like me) you aren't using chroots to build packages. Likewise the dependency on Lua 5.4 for all the split packages was incorrect, that should only have been for the 5.4 package. I've corrected that as well now.

alex.shpilkin commented on 2020-12-25 18:01 (UTC)

I have to admit, though, I don't understand why the packages built by this PKGBUILD always depend on lua in addition to lua5x (e.g. lua51-luacov depends both on lua and lua51); lua-busted, for example, doesn't have that quirk.

alex.shpilkin commented on 2020-12-25 17:49 (UTC)

The PKGBUILD (correctly) tries to build all of lua{,51,52,53}-luacov, but lua53 is missing from makedepends, so the build fails in a clean chroot. Here is the fix:

diff --git a/PKGBUILD b/PKGBUILD
index 874b23e..8323f0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,13 +4,13 @@ _rockname=luacov
 pkgname=("lua-$_rockname" "lua53-$_rockname" "lua52-$_rockname" "lua51-$_rockname")
 pkgver=0.14.0
 _rockrel=1
-pkgrel=5
+pkgrel=6
 pkgdesc='Coverage analysis tool for Lua scripts'
 arch=('i686' 'x86_64')
 url="https://keplerproject.github.io/$_rockname"
 license=('MIT')
 depends=('lua')
-makedepends=('lua' 'lua52' 'lua51' 'luarocks')
+makedepends=('lua' 'lua53' 'lua52' 'lua51' 'luarocks')
 source=("$_rockname-$pkgver.tar.gz::https://github.com/keplerproject/$_rockname/archive/v$pkgver.tar.gz")
 sha256sums=('b48eb004f0a74bc64aa1419d9999057b9595668c37abfa4a126de4083d89ef44')

alerque commented on 2020-02-24 07:48 (UTC)

PSA: I've started hosting this as a prebuilt package in my repository for those that want to install it using pacman without messing around with building from the AUR.

blueyed commented on 2019-09-12 13:20 (UTC)

/usr/bin/luacov fails to run:

/usr/bin/lua5.3: cannot open /home/user/.cache/…/lua-luacov/pkg/lua-luacov/usr/lib/luarocks/rocks-5.3/luacov/0.8-1/bin/luacov: No such file or directory

lua-busted uses this:

package() {
  luarocks --tree="$pkgdir/usr" install --deps-mode=none "$_rockname-$pkgver-$_rockrel.rockspec"
  sed -i -e "s#$pkgdir##" "$pkgdir/usr/bin/busted"
  find "$pkgdir/usr" -name manifest -delete
}