summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9adec63d33b5d9080f3937912db1c32fba82bd34 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Yardena Cohen <yardenack at gmail dot com>

# check for new commits:
#   https://gitweb.torproject.org/https-everywhere.git/shortlog
#   https://github.com/EFForg/https-everywhere/commits/master

pkgsubn=https-everywhere
pkgname=${pkgsubn}-chrome-git
pkgver=66380.17bc164712
pkgrel=2
pkgdesc="Chrome/Chromium extension to use HTTPS whenever possible - git/dev"
arch=('any')
url='https://www.eff.org/https-everywhere'
license=('GPL')
makedepends=(git perl python36 python-lxml libxml2 vim zip rsync)
depends=(chromium)
source=(
    "git+https://github.com/EFForg/${pkgsubn}.git"
    "git+https://github.com/EFForg/${pkgsubn}-lib-wasm.git"
    "git+https://git.torproject.org/translation.git"
)
sha512sums=(SKIP SKIP SKIP)

pkgver() {
	cd "${srcdir}/${pkgsubn}"
	local ver="$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
	printf "%s" "${ver//-/.}"
}
prepare() {
    cd "${srcdir}/${pkgsubn}"
    git submodule init
    git config submodule.lib-wasm.url  "${srcdir}/${pkgsubn}-lib-wasm"
    git config submodule.translate.url "${srcdir}/translation"
    git submodule update
}
build() {
	cd "${srcdir}/${pkgsubn}"
	./make.sh
}
package() {
	 mkdir -p "${pkgdir}/usr/share/${pkgname}"
	 shopt -s dotglob
	 cp -dr --no-preserve=ownership "${srcdir}/${pkgsubn}/pkg/crx-cws"/* "${pkgdir}/usr/share/${pkgname}"
}