diff options
author | Caleb Maclennan | 2020-07-08 17:09:46 +0300 |
---|---|---|
committer | Caleb Maclennan | 2020-07-08 17:11:34 +0300 |
commit | 4d7bf40e189a825abed9e37f69edf20757bc4dd3 (patch) | |
tree | 42b27a4e3b69b719d8047726c6d95df6c72d38db | |
download | aur-4d7bf40e189a825abed9e37f69edf20757bc4dd3.tar.gz |
Initial upload: lua-luacov-coveralls-git 0.2.2.r13.gbc06063-1
upgpkg: lua-luacov-coveralls 0.2.2-5 (fix architecture & dependencies)
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 29 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4662593900b3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = lua-luacov-coveralls-git + pkgdesc = LuaCov reporter for coveralls.io service + pkgver = 0.2.2.r13.gbc06063 + pkgrel = 1 + url = https://github.com/moteus/luacov-coveralls + arch = any + license = MIT + makedepends = luarocks + depends = lua + depends = lua-dkjson + depends = lua-filesystem + depends = lua-luacov + depends = lua-path + provides = lua-luacov-coveralls + conflicts = lua-luacov-coveralls + source = git+https://github.com/moteus/luacov-coveralls.git + sha256sums = SKIP + +pkgname = lua-luacov-coveralls-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b1fe11a6aaaf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> + +_rockname=luacov-coveralls +pkgname=lua-$_rockname-git +pkgver=0.2.2.r13.gbc06063 +_rockrel=0 +pkgrel=1 +pkgdesc='LuaCov reporter for coveralls.io service' +arch=('any') +url="https://github.com/moteus/$_rockname" +license=('MIT') +depends=('lua' 'lua-dkjson' 'lua-filesystem' 'lua-luacov' 'lua-path') +makedepends=('luarocks') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$_rockname" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +package() { + cd "$_rockname" + luarocks --tree="$pkgdir/usr/" \ + make --deps-mode=none "rockspecs/$_rockname-scm-$_rockrel.rockspec" + find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" {} \; +} |