diff --git a/PKGBUILDs/vimb/PKGBUILD b/PKGBUILDs/vimb/PKGBUILD deleted file mode 100644 index a512b73..0000000 --- a/PKGBUILDs/vimb/PKGBUILD +++ /dev/null @@ -1,17 +0,0 @@ -# Maintainer: jun7 -pkgname=wyebadblock-vimb -pkgver=1 -pkgrel=1 -pkgdesc="adblock link to wyebadblock for vimb." -arch=('x86_64') -url="https://github.com/jun7/wyebadblock" -license=('GPL3') -depends=('wyebadblock-git' 'vimb') -makedepends=() -source=() - - -package() { - mkdir -p "$pkgdir/usr/lib/vimb" - ln -s /usr/lib/wyebrowser/adblock.so "$pkgdir/usr/lib/vimb" -} diff --git a/README.md b/README.md index 58d9567..6c2c230 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,11 @@ wyebadblock only checks 'easylist.txt' You can check whether wyebab has found easylist.txt by `wyebab --css` +## for webkit2gtk-4.1 + WEBKITVER=4.1 make + sudo WEBKITVER=4.1 make install +Make sure this adds a dir 4.1/ before the adblock.so + ## Addition for other webkit2gtk browsers webkit2gtk loads extensions in a dir designated by each apps. So we have to make a link to wyebab in the dir. @@ -53,9 +58,7 @@ There is a PKGBUILD file. see the 'PKGBULDs' dir. ### vimb - sudo ln -s /usr/lib/wyebrowser/adblock.so /usr/lib/vimb - -There is a PKGBUILD file. see the 'PKGBULDs' dir. + sudo ln -s /usr/lib/wyebrowser/4.1/adblock.so /usr/lib/vimb If the path doesn't work, check https://fanglingsu.github.io/vimb/howto.html#block diff --git a/makefile b/makefile index 2d49297..584dfb2 100644 --- a/makefile +++ b/makefile @@ -1,9 +1,13 @@ LISTNAME=easylist.txt PREFIX ?= /usr -WEBKIT ?= webkit2gtk-4.1 +WEBKITVER ?= 4.0 +WEBKIT ?= webkit2gtk-$(WEBKITVER) APPDIR ?= wyebrowser -APPVER ?= /4.1 EXTENSION_DIR ?= $(PREFIX)/lib/$(APPDIR) + +ifneq ($(WEBKITVER), 4.0) + VERDIR=/$(WEBKITVER) +endif ifeq ($(DEBUG), 1) CFLAGS += -Wall else @@ -42,12 +46,12 @@ clean: install: install -Dm755 wyebab $(DESTDIR)$(PREFIX)/bin/wyebab - install -Dm755 adblock.so $(DESTDIR)$(EXTENSION_DIR)$(APPVER)/adblock.so + install -Dm755 adblock.so $(DESTDIR)$(EXTENSION_DIR)$(VERDIR)/adblock.so uninstall: rm -f $(PREFIX)/bin/wyebab - rm -f $(EXTENSION_DIR)$(APPVER)/adblock.so - -rmdir $(EXTENSION_DIR)$(APPVER) + rm -f $(EXTENSION_DIR)$(VERDIR)/adblock.so + -rmdir $(EXTENSION_DIR)$(VERDIR) -rmdir $(EXTENSION_DIR)