summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e20bca4afab2d7166d8c002e4636d6720191bfa0 (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
# Maintainer : Axel Navarro <navarroaxel gmail>
_pkgname=googerteller
pkgname=$_pkgname-git
pkgver=r11.9cb01ff
pkgrel=1
pkgdesc='Audible feedback on just how much your browsing feeds into Google'
arch=('x86_64')
url="https://github.com/berthubert/$_pkgname"
license=('MIT')
depends=(pcaudiolib tcpdump)
makedepends=(cmake git)
conflicts=(googerteller)
conflicts=(googerteller)
source=("$_pkgname"::"git+https://github.com/berthubert/$_pkgname.git"
        googerteller.sh)
sha256sums=('SKIP'
            'ccfb1eaafed1f9d71d29f745d3d82c37348c36eab13c21bb5e494dda51bfd985')

pkgver() {
  cd $_pkgname
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$_pkgname"
  cmake .
  make
}

package() {
  install -Dm755 googerteller.sh "$pkgdir/usr/bin/$_pkgname"

  cd "$_pkgname"
  install -Dm755 teller -t "$pkgdir/usr/lib/$_pkgname"
  install -Dm644 goog-prefixes.txt -t "$pkgdir/usr/lib/$_pkgname"
}