summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c9deed59b5bed11f77bd4b11d7d2ed3de29ca134 (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: Cassandra Watergate (saltedcoffii) <cassandrajwatergate@gmail.com>

_pkgname=gnome-shell-extension-duckduckgo-search-provider
pkgname=$_pkgname-git
pkgver=r9.1e87ab1
pkgrel=1
pkgdesc="Add DuckDuckGo search suggestions to Gnome Shell Search"
arch=('any')
url="https://github.com/keithamus/gnome-shell-duckduckgo-search-provider"
license=('GPL-2')
depends=('gnome-shell')
makedepends=('typescript')
optdepends=(
  'firefox: opening DuckDuckGo in Firefox'
  'chromium: opening DuckDuckGo in Chromium'
  'epiphany: opening DuckDuckGo in Epiphany'
)
source=(git+https://github.com/keithamus/gnome-shell-duckduckgo-search-provider)
sha256sums=('SKIP')

_gitsrcdir=gnome-shell-duckduckgo-search-provider

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

build() {
  cd $_gitsrcdir
  make
}

package() {
  cd $_gitsrcdir
  make DESTDIR="$pkgdir" install
}