aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid <davidventura27@gmail.com>2021-04-11 23:26:02 +0200
committerLeo <thinkabit.ukim@gmail.com>2021-04-12 17:56:58 +0000
commitc07b43743ea506784487600bd61ec1fd85d526ba (patch)
tree2113a95fea75617d4c1847688ce49acf4f4094bd
parenta06fd61b3e6a4e48e62136dd16c273ec0325e222 (diff)
downloadaports-c07b43743ea506784487600bd61ec1fd85d526ba.tar.gz
aports-c07b43743ea506784487600bd61ec1fd85d526ba.tar.bz2
aports-c07b43743ea506784487600bd61ec1fd85d526ba.tar.xz
testing/wk-adblock: new aport
Simple ad-blocker for Webkit2 Webview https://github.com/DavidVentura/webextension-adblocker/
-rw-r--r--testing/wk-adblock/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/wk-adblock/APKBUILD b/testing/wk-adblock/APKBUILD
new file mode 100644
index 0000000000..2885e00bfb
--- /dev/null
+++ b/testing/wk-adblock/APKBUILD
@@ -0,0 +1,27 @@
+# Maintainer: David Ventura <david@davidv.dev>
+pkgname=wk-adblock
+pkgver=0.0.4
+_commit=665ffb4126ae924e345d04adcf6242066216a508
+pkgrel=0
+pkgdesc="Simple ad-blocker for Webkit2 Webview"
+options="!check" # No testsuite
+url="https://github.com/DavidVentura/webextension-adblocker/"
+arch="aarch64 armv7 x86 x86_64" # Limited by rust
+license="GPL-3.0-or-later"
+makedepends="cargo clang-libs llvm11-dev binutils glib-dev webkit2gtk-dev"
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/DavidVentura/webextension-adblocker/tar.gz/$_commit"
+builddir="$srcdir/webextension-adblocker-$_commit"
+
+build() {
+ cd wk-we-adblock
+ cargo build --release
+}
+
+package() {
+ make install DESTDIR="$pkgdir"
+ mkdir -p $pkgdir/usr/share/man
+ cp manpage $pkgdir/usr/share/man/$pkgname
+}
+
+sha512sums="a2d1b36e364311c9e14849ee76628d0e1d1964b5f5b9ba4a3a4211ec798080d1ff97ce0c08bc708114e3ed6a40a7ef437406280e61a880340d691c5a5d0712b3 wk-adblock-0.0.4.tar.gz"