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
c1099844
Commit
c1099844
authored
Aug 17, 2020
by
ThatGeekyWeeb
Committed by
GitHub
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New Package:Berry - Floating WM (#4224)
parent
a043f3ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
packages/berry.rb
packages/berry.rb
+74
-0
No files found.
packages/berry.rb
0 → 100644
View file @
c1099844
require
'package'
class
Berry
<
Package
description
'Healthy, bite-sized window manager'
homepage
'https://github.com/JLErvin/berry'
version
'0.1.5'
compatibility
'all'
source_url
'https://github.com/JLErvin/berry/archive/0.1.5.tar.gz'
source_sha256
'3d2fa52aeba6ed05d3cc0e8308604c5a83e94a8623f3e66ed53fd5e0fdabfabf'
depends_on
'libx11'
depends_on
'freetype'
depends_on
'sommelier'
def
self
.
patch
#system "touch ./cross.patch"
puts
"Making Patch file"
.
lightred
system
"cat << 'EOF' > cross.patch
diff config.mk.orig config.mk -u
--- config.mk.orig 2020-08-17 19:22:12.659998356 -0400
+++ config.mk 2020-08-17 19:23:12.059998341 -0400
@@ -12,8 +12,8 @@
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
-X11INC = /usr/X11R6/include
-X11LIB = /usr/X11R6/lib
+X11INC = /usr/local/include
+X11LIB = /usr/local/lib
# Xinerama, comment if you don't want it
XINERAMALIBS = -lXinerama
@@ -21,7 +21,7 @@
# freetype
FREETYPELIBS = -lfontconfig -lXft
-FREETYPEINC = /usr/include/freetype2
+FREETYPEINC = /usr/local/include/freetype2
# OpenBSD (uncomment)
#FREETYPEINC = ${X11INC}/freetype2
@@ -36,7 +36,7 @@
# flags
CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=
\"
${VERSION}
\"
${XINERAMAFLAGS} ${DEBUG_CPPFLAGS}
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS}
-CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS} $(NAME_DEFINES)
+CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS} ${DEBUG_CFLAGS}
LDFLAGS = ${LIBS}
# Solaris
@@ -44,4 +44,4 @@
#LDFLAGS = ${LIBS}
# compiler and linker
-CC = cc
+#CC = cc
EOF"
puts
"Patching..."
.
red
system
"cat ./cross.patch"
system
"patch -Np0 < cross.patch"
puts
"Patched!"
.
lightblue
end
def
self
.
build
system
"make"
end
def
self
.
install
system
"make DESTDIR=
#{
CREW_DEST_DIR
}
install PREFIX=
#{
CREW_PREFIX
}
"
end
def
self
.
postinstall
puts
'A hoykey system such as sxhkd is needed in order to use berry as a WM'
.
lightblue
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