Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Package: awesome-LuaJIT #16137

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 36 additions & 0 deletions srcpkgs/awesome-LuaJIT/template
@@ -0,0 +1,36 @@
# Template file for 'awesome-LuaJIT'
pkgname=awesome-LuaJIT
version=4.3
revision=1
wrksrc="awesome-${version}"
build_style=cmake
build_helper="qemu"
configure_args="
-DSYSCONFDIR=/etc
-DLUA_LIBRARY=/usr/lib/libluajit-5.1.so.2.1.0"
conf_files="/etc/xdg/awesome/rc.lua"
hostmakedepends="ruby-asciidoctor ImageMagick lgi-LuaJIT LuaJIT pkg-config xmlto"
makedepends="libxcb-devel pango-devel xcb-util-devel xcb-util-image-devel
xcb-util-keysyms-devel xcb-util-wm-devel xcb-util-cursor-devel
startup-notification-devel imlib2-devel lgi-LuaJIT libxdg-basedir-devel
gdk-pixbuf-devel lua51-devel LuaJIT-devel dbus-devel libxkbcommon-devel xcb-util-xrm-devel"
depends="dbus-x11 lgi-LuaJIT pango"
short_desc="Highly configurable, next gen framework window manager for X with LuaJIT"
maintainer="mustaqim <mustaqim@pm.me>"
license="GPL-2.0-or-later"
homepage="http://awesomewm.org"
distfiles="https://github.com/awesomeWM/awesome/releases/download/v${version}/awesome-${version}.tar.xz"
checksum=78264d6f012350b371e339127aca485260bc0aa935eff578ba75ce1a00e11753
conflicts="awesome"

pre_configure() {
# Russian manpages fail to build.
vsed -i -e "s|es fr de ru|es fr de|g" CMakeLists.txt

vsed -i -e "s|COMMAND lua\b|COMMAND luajit|" awesomeConfig.cmake tests/examples/CMakeLists.txt
vsed -i -e "s|LUA_COV_RUNNER lua\b|LUA_COV_RUNNER luajit|" tests/examples/CMakeLists.txt
}

post_install() {
vinstall awesome.desktop 644 usr/share/xsessions
}
23 changes: 23 additions & 0 deletions srcpkgs/lgi-LuaJIT/template
@@ -0,0 +1,23 @@
# Template file for 'lgi-LuaJIT'
pkgname=lgi-LuaJIT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this package actually doesn't have anything to do with LuaJIT. Both LuaJIT and lua51 can use what ever contained in that package. So I suggest changing the name to lua51-lgi.

version=0.9.2
revision=1
wrksrc="lgi-${version}"
build_style=gnu-makefile
make_install_args="LUA_VERSION=5.1"
hostmakedepends="pkg-config"
makedepends="libglib-devel libffi-devel lua51-devel
gobject-introspection gir-freedesktop"
depends="LuaJIT gir-freedesktop"
short_desc="LuaJIT bindings for gnome/gobject using gobject-introspection library"
maintainer="mustaqim <mustaqim@pm.me>"
license="MIT"
homepage="https://github.com/pavouk/lgi"
distfiles="https://github.com/pavouk/lgi/archive/$version.tar.gz"
checksum=cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f
conflicts="lgi"

post_install() {
vbin tools/dump-typelib.lua dump-typelib
Comment on lines +18 to +21
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this one, I inspected the original lgi and this package. The only file that is conflict is the tools/dump-typelib.lua. Maybe we should change this to dump-tpyelib5.1, the one in the original lgi to dump-typelib5.3 and add and alternative group?

vlicense LICENSE
}