Commit c1099844 authored by ThatGeekyWeeb's avatar ThatGeekyWeeb Committed by GitHub

New Package:Berry - Floating WM (#4224)

parent a043f3ad
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment