summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2bd7680cf3c2120b5b348fc15da610a140f5bd51 (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
# Maintainer: GI_Jack <GI_Jack@hackermail.com>

# Please note this is NOT useragentswitcher by chris perderrik.

_plugin_name=user-agent-switcher
_plugin_ext=""
_file=4253977

pkgname=firefox-extension-$_plugin_name
pkgver=1.4.53
pkgrel=1
arch=('any')
pkgdesc="Firefox extension to override the browser's User-Agent string"
license=('GPL')
url="https://gitlab.com/ntninja/user-agent-switcher"
depends=("firefox>=57")
source=("https://addons.mozilla.org/firefox/downloads/file/${_file}/uaswitcher-${pkgver}${_plugin_ext}.xpi")

noextract=('user_agent_switcher-${pkgver}${_plugin_ext}.xpi')
sha256sums=('882d94f2d85549f37905791efccd8be64ef4f1803753d1e883387d1d273e3e07')

package() {
  cd "${srcdir}"
  _extension_id="user-agent-switcher@ninetailed.ninja"
  _extension_dest="${pkgdir}/usr/lib/firefox/browser/extensions/${_extension_id}"
  install -Dm644 uaswitcher-${pkgver}${_plugin_ext}.xpi "${_extension_dest}.xpi"
}