Package Details: surf-git 2.0.r53.g81f0452-1

Git Clone URL: (read-only, click to copy)
Package Base: surf-git
Description: a WebKit based browser
Upstream URL:
Keywords: browser suckless web webkit
Licenses: custom:MIT/X
Conflicts: surf
Provides: surf
Submitter: None
Maintainer: cdude
Last Packager: cdude
Votes: 32
Popularity: 0.130689
First Submitted: 2013-03-06 09:28
Last Updated: 2018-04-28 19:50

Dependencies (10)

Required by (2)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

erb commented on 2020-05-25 08:35

Getting an error when building, looks like an upstream issue?

Edit: Nvm, looks like an issue in config.h

Edit 2: Fixed by replacing all instances of 'scroll' with 'scrollh' in config.h and building with makepkg -si --skipchecksums.

c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/lib/surf\"  -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c common.c
c99 -shared -Wl,-soname, -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o \
    libsurf-webext.o common.o `pkg-config --libs webkit2gtk-4.0 webkit2gtk-web-extension-4.0`
c99 `pkg-config --cflags x11` `pkg-config --cflags gtk+-3.0 gcr-3 webkit2gtk-4.0` -DVERSION=\"2.0\" -DWEBEXTDIR=\"/usr/lib/surf\"  -D_DEFAULT_SOURCE -DGCR_API_SUBJECT_TO_CHANGE -fPIC -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -c surf.c
In file included from surf.c:302:
config.h:149:43: error: ‘scroll’ undeclared here (not in a function); did you mean ‘scrollh’?
  149 |  { MODKEY,                GDK_KEY_j,      scroll,     { .i = 'd' } },
      |                                           ^~~~~~
      |                                           scrollh
surf.c: In function ‘createwindow’:
surf.c:1421:3: warning: ‘gtk_window_set_wmclass’ is deprecated [-Wdeprecated-declarations]
 1421 |   gtk_window_set_wmclass(GTK_WINDOW(w), wmstr, "Surf");
      |   ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
                 from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:31,
                 from surf.c:23:
/usr/include/gtk-3.0/gtk/gtkwindow.h:154:12: note: declared here
  154 | void       gtk_window_set_wmclass              (GtkWindow           *window,
      |            ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:24: surf.o] Error 1
==> ERROR: A failure occurred in build().
Error making: surf-git

christoph.gysin commented on 2019-12-17 08:31

Deleting the prepare() section and remove src/surf/config.h will fix the build.

himorithm commented on 2019-03-14 18:16

Same issue with me. Finally did diff config.h diff with repository. Changed config.h then it started compiling with makepkg --skipchecksums.

Package got built but looks like Dmenu functionality broken . Ctrl+g don't show any text.

copperteal commented on 2019-01-13 19:12

I git-clone'd the repo, but makepkg is aborting the build. Here's my log:

Any suggestions?

sekret commented on 2018-04-28 20:04

Nicely done! :-) I'd vote however to make the PKGBUILD skip the checksum test for the config.h At least on my workflow this is the better way to handle it.

And thanks for this link! :-)

cdude commented on 2018-04-28 20:03

If you are not aware of it already, here is a highly recommended read about suckless surf:

cdude commented on 2018-04-28 19:58

Thank you sekret.

I have adopted the package.

  • Added tabbed (you could also use tabbed-git) as an optional dependency.
  • PKGBUILD now supports patches: simply include the patch in the main directory, add the name to the source array in PKGBUILD, run updpkgsums, and then build. The patch should apply automatically, provided that it is a git version patch.


sekret commented on 2018-03-20 21:31

Somehow surf isn't usable for me anymore. I actually don't even use it, so it's best if somebody with more interest takes care of this package.


sekret commented on 2017-05-12 09:59

Big update, now surf uses webkit2gtk. You'll also see that things changed on the surface :-)


zcal commented on 2015-12-10 19:01

Ah, silly me. Thanks!