mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
* Remove self.check in python3.rb as tests were not actuallly being run * Enable Lint/ImplicitStringConcatenation cop * Enable Layout/CommentIndentation cop * Remove unnecessary configuration of Layout/IndentationStyle to EnforcedStyle: spaces, as this is already the default * Enable Layout/LeadingCommentSpace cop * Enable Layout/SpaceInsideBlockBraces cop * Enable Layout/SpaceInsideParens cop * Enable Layout/TrailingEmptyLines cop * Enable Lint/LiteralAsCondition cop * Document the current issue stopping us from enabling Style/OptionalBooleanParameter * Stop downloading our rubocop config when installing ruby_rubocop
56 lines
2.0 KiB
Ruby
56 lines
2.0 KiB
Ruby
# Adapted from Arch Linux lua-lgi-git PKGBUILD at:
|
|
# https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=lua-lgi-git
|
|
|
|
require 'package'
|
|
|
|
class Luajit_lgi < Package
|
|
description 'Lua bindings for gnome/gobject using gobject-introspection library'
|
|
homepage 'https://github.com/pavouk/lgi'
|
|
version '0.9.2'
|
|
license 'custom:MIT'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://github.com/lgi-devs/lgi/archive/refs/tags/0.9.2.tar.gz'
|
|
source_sha256 'cfc4105482b4730b3a40097c9d9e7e35c46df2fb255370bdeb2f45a886548c4f'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'e19655e9a947cf484f57a92c528fe58b830c53ebac0ef271e5a623c42c906982',
|
|
armv7l: 'e19655e9a947cf484f57a92c528fe58b830c53ebac0ef271e5a623c42c906982',
|
|
x86_64: 'fb5ba8a94d24d9e129ad435304102571bfc785e753dfa34e88e4addd5869fbde'
|
|
})
|
|
|
|
depends_on 'cairo'
|
|
depends_on 'glibc'
|
|
depends_on 'glib'
|
|
depends_on 'libffi'
|
|
depends_on 'gobject_introspection'
|
|
depends_on 'luajit'
|
|
|
|
def self.build
|
|
@lua_cflags = `pkg-config --cflags luajit`.chomp
|
|
@lua_include = `pkg-config --cflags-only-I luajit | sed 's/-I//'`.chomp
|
|
system "make LUA_INCDIR=#{@lua_include} \
|
|
LUA_CFLAGS=#{@lua_cflags}"
|
|
# system "meson setup #{CREW_MESON_OPTIONS} \
|
|
# -Dlua-pc=luajit \
|
|
# -Dlua-bin=#{CREW_PREFIX}/bin/luajit \
|
|
# -Dtests=false \
|
|
# builddir"
|
|
# system 'meson configure --no-pager builddir'
|
|
# system 'mold -run samu -C builddir'
|
|
end
|
|
|
|
def self.install
|
|
@lua_version = `luajit -e "print(_VERSION)" | awk '{print $2}'`.chomp
|
|
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/lib/lua/#{@lua_version}/lgi"
|
|
system "make \
|
|
LUA_LIBDIR=#{CREW_PREFIX}/lib/lua/#{@lua_version} \
|
|
LUA_SHAREDIR=#{CREW_PREFIX}/share/lua/#{@lua_version} \
|
|
DESTDIR=#{CREW_DEST_DIR} install"
|
|
# return unless ARCH == 'x86_64'
|
|
|
|
# FileUtils.mv "#{CREW_DEST_LIB_PREFIX}/lua/#{@lua_version}/lgi/corelgilua51.so",
|
|
# "#{CREW_DEST_PREFIX}/lib/lua/#{@lua_version}/lgi/corelgilua51.so"
|
|
end
|
|
end
|