Skip to content

Commit

Permalink
New package: firefox-ublock-origin-1.62.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Emru1 committed Jan 28, 2025
1 parent 227421a commit a7e3b34
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions srcpkgs/firefox-ublock-origin/INSTALL.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
After installing this package restart Firefox twice to properly setup
extension.
34 changes: 34 additions & 0 deletions srcpkgs/firefox-ublock-origin/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Template file for 'firefox-ublock-origin'
pkgname=firefox-ublock-origin
version=1.62.0
revision=1
hostmakedepends="python3 zip"
depends="firefox"
short_desc="Effecient blocker for Firefox"
maintainer="Emil Tomczyk <[email protected]>"
license="GPL-3.0-or-later"
homepage="https://ublockorigin.com/"
_uassets_master="5722991a9ad362eaf4f2bb6ff64f08cccbafa2ef"
_uassets_ghpages="2dde847869577e87fb9e0e095ac25323eba26560"
distfiles="https://github.com/gorhill/uBlock/archive/refs/tags/${version}.tar.gz
https://github.com/uBlockOrigin/uAssets/archive/${_uassets_master}.tar.gz
https://github.com/uBlockOrigin/uAssets/archive/${_uassets_ghpages}.tar.gz"
checksum="1f9d69f968ddec2ccfd3b104a3e0cda80403efd1a63356924406cf5296cde67b
a04e029394796104f60c346625707e1740069df8aea7e35af6d679b7b6febccb
afb5a554eefe4f4f8ecb8217d29518df71c76f1e85a10ffbd788c61e400c736d"

post_extract() {
mkdir -p uBlock-${version}/dist/build/uAssets
mv uAssets-${_uassets_master} uBlock-${version}/dist/build/uAssets/main
mv uAssets-${_uassets_ghpages} uBlock-${version}/dist/build/uAssets/prod
}

do_build() {
cd uBlock-${version}
make firefox
}

do_install() {
vinstall uBlock-${version}/dist/build/uBlock0.firefox.xpi 0644 \
usr/lib/firefox/browser/extensions [email protected]
}

0 comments on commit a7e3b34

Please sign in to comment.