diff options
author | Peter Cai | 2021-07-07 17:04:47 +0800 |
---|---|---|
committer | Peter Cai | 2021-07-07 17:04:47 +0800 |
commit | 70546197ead85f778d3270d3c1ed69bb7b0c0c1c (patch) | |
tree | b40a81f1dcc770b98af7e4eb43be2e5fd56a9e73 | |
download | aur-70546197ead85f778d3270d3c1ed69bb7b0c0c1c.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 36 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..b2e51ffc5f0c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = firefox-pwa + pkgdesc = A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox. (native component) + pkgver = 0.3.1 + pkgrel = 1 + url = https://github.com/filips123/FirefoxPWA + arch = x86_64 + license = MPL2 + makedepends = rust + makedepends = cargo + depends = firefox + source = firefox-pwa-0.3.1.tar.gz::https://github.com/filips123/FirefoxPWA/archive/refs/tags/v0.3.1.tar.gz + sha256sums = be58235831f287435a98f22095cbe37bd6dea671bc9c6a224b301270e4534f2a + +pkgname = firefox-pwa diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..3e44358aff5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.tar.zst +pkg +src diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c09ee60a8603 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: <peter at typeblog dot net> + +pkgname=firefox-pwa +_pkgname="FirefoxPWA" +pkgdesc='A tool to install, manage and use Progressive Web Apps (PWAs) in Mozilla Firefox. (native component)' +pkgver=0.3.1 +pkgrel=1 +arch=('x86_64') +url="https://github.com/filips123/FirefoxPWA" +license=('MPL2') +depends=('firefox') +makedepends=('rust' 'cargo') +source=("$pkgname-$pkgver.tar.gz::https://github.com/filips123/FirefoxPWA/archive/refs/tags/v$pkgver.tar.gz") +sha256sums=('be58235831f287435a98f22095cbe37bd6dea671bc9c6a224b301270e4534f2a') + +prepare() { + cd $srcdir/$_pkgname-$pkgver/native + sed -i "s/version = \"0.0.0\"/version = \"$pkgver\"/" Cargo.toml +} + +build() { + cd $srcdir/$_pkgname-$pkgver/native + RUSTUP_TOOLCHAIN=stable cargo build --release --target-dir=target +} + +package() { + cd $srcdir/$_pkgname-$pkgver + install -Dm755 native/target/release/firefoxpwa $pkgdir/usr/bin/firefoxpwa + install -Dm755 native/target/release/firefoxpwa-connector $pkgdir/usr/libexec/firefoxpwa-connector + install -Dm644 native/manifests/linux.json $pkgdir/usr/lib/mozilla/native-messaging-hosts/firefoxpwa.json + mkdir -p $pkgdir/usr/share/firefoxpwa + cp -r native/userchrome $pkgdir/usr/share/firefoxpwa/ + chmod -R 755 $pkgdir/usr/share/firefoxpwa + mkdir -p $pkgdir/usr/share/firefoxpwa/runtime + chmod 777 $pkgdir/usr/share/firefoxpwa/runtime +} |