blob: 5e992613ee4dda54c242e1183f862172c9c4c773 (
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
45
46
47
48
49
50
51
52
|
# Maintainer: filips <projects at filips dot si>
# This file is automatically updated/generated on every package release
# Any changes made directly to the AUR repository will be overwritten
# Please contribute changes to the main GitHub repository instead
# See: https://github.com/filips123/FirefoxPWA/blob/main/native/packages/aur/firefox-pwa-bin/PKGBUILD
_pkgname="FirefoxPWA"
pkgname="firefox-pwa-bin"
pkgdesc="A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox (native component)"
pkgver="1.2.2"
pkgrel=1
url="https://github.com/filips123/FirefoxPWA"
arch=("x86_64" "i686")
license=("MPL2")
depends=("glibc>=2.18")
optdepends=("firefox: Support for browser extension")
provides=("firefox-pwa")
conflicts=("firefox-pwa")
install=package.install
source_x86_64=("https://github.com/filips123/FirefoxPWA/releases/download/v${pkgver}/firefoxpwa_${pkgver}_amd64.deb")
source_i686=("https://github.com/filips123/FirefoxPWA/releases/download/v${pkgver}/firefoxpwa_${pkgver}_i386.deb")
sha256sums_x86_64=('b4c1ac17bb69735d71df1db1bba8884d6e47b945d252579de92b7d099da64ef5')
sha256sums_i686=('6d759de5c8d6f8dcb404b72c1ccd4eff4e1d31ef53b01a1aa63a998901a87dc2')
b2sums_x86_64=('71842a9770914462e3bd236a1b294180d6ceeafe6f7a19e0ed9c38726e67ba69c84c25bc960ea3a317c85e439dc8e2dca9c514dccba24d84148fa5d7331b4336')
b2sums_i686=('0c54a85122672f3792d7f3a7d5a3c4c703404723a149546407129a91ed7d390a88e17cb65b952f0490d6c6f80fa60b7de77cc044975fc77f360fdf3746211bb5')
prepare() {
# Extract data from DEB archive
mkdir -p $srcdir/data/
tar xf ${srcdir}/data.tar.xz -C $srcdir/data/
# We don't use libexec on Arch
sed -i "s@/usr/libexec/firefoxpwa-connector@/usr/lib/firefoxpwa/firefoxpwa-connector@g" $srcdir/data/usr/lib/mozilla/native-messaging-hosts/firefoxpwa.json
mkdir -p $srcdir/data/usr/lib/firefoxpwa/
mv $srcdir/data/usr/libexec/firefoxpwa-connector $srcdir/data/usr/lib/firefoxpwa/
# Remove unnecessary directories
rm -rf $srcdir/data/usr/libexec/
rm -rf $srcdir/data/usr/lib64/
}
check() {
cd $srcdir/data/
[ "$(./usr/bin/firefoxpwa --version)" == "firefoxpwa $pkgver" ]
}
package() {
cp -r $srcdir/data/* $pkgdir
}
|