Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
4b4b8427
Commit
4b4b8427
authored
Apr 18, 2021
by
supechicken
Committed by
GitHub
Apr 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gnome-nibbles: fix compile (#5628)
* Update gnome_nibbles.rb
parent
aa87f393
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
20 deletions
+9
-20
packages/gnome_nibbles.rb
packages/gnome_nibbles.rb
+9
-20
No files found.
packages/gnome_nibbles.rb
View file @
4b4b8427
...
...
@@ -3,43 +3,32 @@ require 'package'
class
Gnome_nibbles
<
Package
description
'snake game, up to four players'
homepage
'https://wiki.gnome.org/Apps/Nibbles'
@_app
=
File
.
basename
(
__FILE__
,
'.rb'
).
tr
(
'_'
,
'-'
)
@_fullver
=
'3.38.2'
@_mainver
=
@_fullver
.
rpartition
(
'.'
)[
0
]
@_url
=
"https://download.gnome.org/sources/
#{
@_app
}
/
#{
@_mainver
}
/
#{
@_app
}
-
#{
@_fullver
}
"
version
@_fullver
@_commit
=
'62964e9256fcac616109af874dbb2bd8342a9853'
version
'3.38.2+git+'
+
@_commit
[
0
..
8
]
license
'GPL-3+ and CC-BY-SA-3.0'
compatibility
'all'
source_url
"
#{
@_url
}
.tar.x
z"
source_sha256
`curl -Ls
#{
@_url
}
.sha256sum | tail -n1 | cut -d ' ' -f1`
.
chomp
source_url
"
https://gitlab.gnome.org/GNOME/gnome-nibbles/-/archive/
#{
@_commit
}
/gnome-nibbles-
#{
@_commit
}
.tar.g
z"
source_sha256
'ebf93903d36ae939f9ae56f47bc0dea151a60dfe2c63962af84c517ef1d7aba4'
depends_on
'clutter_gtk'
depends_on
'gsound'
depends_on
'librsvg'
depends_on
'libgnome_games_support'
depends_on
'wayland'
def
self
.
build
system
"meson
#{
CREW_MESON_OPTIONS
}
builddir"
system
"meson
#{
CREW_MESON_
FNO_LTO_
OPTIONS
}
builddir"
system
'meson configure builddir'
system
'ninja -C builddir'
end
def
self
.
install
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C builddir install"
@_wrapper
=
<<~
EOF
#!/bin/sh
WAYLAND_DISPLAY=wayland-0
GDK_BACKEND=wayland
CLUTTER_BACKEND=wayland
exec
#{
@_app
}
.elf "$@"
EOF
File
.
write
(
@_app
,
@_wrapper
)
FileUtils
.
mv
"
#{
CREW_DEST_PREFIX
}
/bin/
#{
@_app
}
"
,
"
#{
CREW_DEST_PREFIX
}
/bin/
#{
@_app
}
.elf"
FileUtils
.
install
@_app
,
"
#{
CREW_DEST_PREFIX
}
/bin/
#{
@_app
}
"
,
mode:
0755
end
def
self
.
postinstall
system
'gdk-pixbuf-query-loaders --update-cache'
system
"glib-compile-schemas
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
system
'update-mime-database'
,
"
#{
CREW_PREFIX
}
/share/mime"
system
'gdk-pixbuf-query-loaders'
,
'--update-cache'
system
'glib-compile-schemas'
,
"
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment