summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 532ce4879a14e822d1d2471ab779868d34cb6bb2 (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: detiam <dehe_tian@outlook.com>

pkgname=firefox-esr-extension-download-with-aria2
pkgver=4.12.0.2974
pkgrel=1
pkgdesc='The Aria2 Download Manager for Firefox ESR'
arch=('any')
url='https://github.com/jc3213/download_with_aria2'
license=('LGPL-2.1-or-later')
depends=('firefox-esr')
makedepends=('jq')
groups=('firefox-esr-addons')
source=("$pkgname::git+https://github.com/jc3213/download_with_aria2#tag=$pkgver")
sha1sums=('4361a582b1ad4d8a8dba1264c831cecebd619ed4')

build() {
  cd "$pkgname"
  sh linux_build.sh firefox
}

package() {
  cd "$pkgname"
  local id && id=$(jq -j '..|.gecko?.id//empty' firefox/manifest.json)
  msg2 "Firefox extension id is $id"
  install -Dm644 build/firefox/${pkgver}.xpi \
    "${pkgdir}/usr/lib/firefox-esr/browser/extensions/${id}.xpi"
}