blob: 144c153b01f22c9814db80928e38abbfdcd32fc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: David Cooper <david@dtcooper.com>
# Contributer: Ajay <dev@ajay.app>
_pkgname=bypass-paywalls-chrome-clean
_archive="${_pkgname}-master"
_source="https://github.com/bpc-clone/bpc_updates/releases/download/latest/${_archive}.zip"
pkgname=chromium-bypass-paywalls-clean
pkgver=3.7.6.0
pkgrel=1
pkgdesc="Chromium extension to bypass paywalls"
url="https://github.com/bpc-clone/bpc_updates"
arch=('any')
install="${pkgname}.install"
license=(MIT)
makedepends=(jq)
# You'll need remove existing source files to get an update
source=("${_pkgname}-${pkgver}.zip::${_source}")
# Since upstream changes without notice, skip checksum. We trust github over https, right? :P
sha256sums=('SKIP')
pkgver() {
jq -r .version < "${_archive}/manifest.json"
}
package() {
mkdir -p "${pkgdir}/usr/share/chromium/${_pkgname}"
shopt -u dotglob
cp -dr --no-preserve=ownership "${srcdir}/${_archive}"/* "${pkgdir}/usr/share/chromium/${_pkgname}/"
install -D "${_archive}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|