summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7b8bd6d58cd106aeebcabba694572f54f4174ca0 (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: Yardena Cohen <yardenack at gmail dot com>

# check for new commits:
#   https://github.com/gorhill/uBlock/commits/master

gitname=uMatrix
pkgname=chromium-umatrix-git
pkgver=1.4.1b3
pkgrel=1
pkgdesc="Point and click matrix to filter net requests according to source, destination and type"
arch=('any')
url="https://github.com/gorhill/${gitname}"
license=('GPL3')
makedepends=(git zip python)
source=("git+${url}.git" "git+https://github.com/uBlockOrigin/uAssets.git")
sha512sums=('SKIP' 'SKIP')

pkgver() {
    cd "${srcdir}/${gitname}"
    local ver="$(git describe --tags | sed 's|-|\.|g')"
    printf "%s" "${ver//-/.}"
}
build() {
    cd "${srcdir}/${gitname}"
    ./tools/make-chromium.sh
}
package() {
   mkdir -p "${pkgdir}/usr/share/${pkgname}"
   cp -dr --no-preserve=ownership "${srcdir}/${gitname}/dist/build/uMatrix.chromium"/* "${pkgdir}/usr/share/${pkgname}/"
}