Fix rockspec (#524)

I could not install lain via luarocks using the existing rockspec file. There were a few issues:

1. There is no `scm-1` tag in the repo,
2. The glib, curl & awesome dependencies do not exist as rocks in the luarocks repo, therefore they should not be dependencies here
3. The format of the repo URL is incorrect, it should be using the `git+https` protocol

Once I fixed those issues I was able to install using a local copy of the rockspec. I'm sure I'm not the first person to install lain via luarocks, how have others have managed to get it to work?
This commit is contained in:
Joe Fiorini 2022-03-16 15:46:25 -04:00 committed by GitHub
parent 6a06d3cb79
commit 958ab5ba81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 6 deletions

View File

@ -1,8 +1,8 @@
package = "lain" package = "lain"
version = "scm-1" version = "scm-1"
source = { source = {
url = "https://github.com/lcpz/lain", url = "git+https://github.com/lcpz/lain.git",
tag = "scm-1`" tag = "master"
} }
description = { description = {
summary = "Layout, widgets and utilities for Awesome WM", summary = "Layout, widgets and utilities for Awesome WM",
@ -15,13 +15,11 @@ description = {
license = "GPL-2.0" license = "GPL-2.0"
} }
dependencies = { dependencies = {
"lua >= 5.1", "lua >= 5.1"
"awesome >= 4.0",
"Glib >= 2.54",
"curl"
} }
supported_platforms = { "linux" } supported_platforms = { "linux" }
build = { build = {
type = "builtin", type = "builtin",
modules = { lain = "init.lua" } modules = { lain = "init.lua" }
} }