Package Details: surf-git 2.0.r82.g7dcce9e-1

Git Clone URL: https://aur.archlinux.org/surf-git.git (read-only, click to copy)
Package Base: surf-git
Description: a WebKit based browser
Upstream URL: http://surf.suckless.org/
Keywords: browser suckless web webkit
Licenses: custom:MIT/X
Conflicts: surf
Provides: surf
Submitter: None
Maintainer: cdude
Last Packager: cdude
Votes: 36
Popularity: 0.000073
First Submitted: 2013-03-06 09:28 (UTC)
Last Updated: 2020-12-11 21:54 (UTC)

Dependencies (10)

Required by (1)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

cdude commented on 2020-12-11 22:03 (UTC) (edited on 2020-12-11 22:10 (UTC) by cdude)

Sorry for the delay. Th package should be fixed now. Note: the warnings are in the upstream source code. You can safely ignore them.

I also made custom config.h optional. To use one, put it in the main source directory and edit the appropriate PKGBUILD section:

source=("$_pkgname::git+https://git.suckless.org/surf" 'config.h')
md5sums=('SKIP' 'SKIP')`

mao2047 commented on 2020-12-11 00:19 (UTC)

I tried what erb suggests but it didn't work. It gave me this:


surf.c: In function ‘newview’:
surf.c:1179:11: error: ‘plugindirs’ undeclared (first use in this function); did you mean ‘Plugins’?
 1179 |   for (; *plugindirs; ++plugindirs)
      |           ^~~~~~~~~~
      |           Plugins
surf.c:1179:11: note: each undeclared identifier is reported only once for each function it appears in
surf.c: In function ‘createwindow’:
surf.c:1448:3: warning: ‘gtk_window_set_wmclass’ is deprecated [-Wdeprecated-declarations]
 1448 |   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:25:
/usr/include/gtk-3.0/gtk/gtkwindow.h:154:12: note: declared here
  154 | void       gtk_window_set_wmclass              (GtkWindow           *window,
      |            ^~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:31: surf.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

erb commented on 2020-05-25 08:35 (UTC) (edited on 2020-05-25 08:41 (UTC) by erb)

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,libsurf-webext.so -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -o libsurf-webext.so \
    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().
    Aborting...
Error making: surf-git

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

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

himorithm commented on 2019-03-14 18:16 (UTC) (edited on 2019-03-14 18:18 (UTC) by himorithm)

Same issue with me. Finally did diff config.h diff with https://git.suckless.org/surf 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 (UTC)

I git-clone'd the repo, but makepkg is aborting the build. Here's my log: https://textuploader.com/1am8b

Any suggestions?

sekret commented on 2018-04-28 20:04 (UTC)

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 (UTC)

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

http://troubleshooters.com/linux/surf.htm

cdude commented on 2018-04-28 19:58 (UTC)

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.

cheers!