diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 37 | ||||
-rw-r--r-- | bnf-nativefier.desktop | 15 | ||||
-rw-r--r-- | bnf-nativefier.png | bin | 0 -> 979 bytes |
4 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8509c3ff61f0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = bnf-nativefier + pkgdesc = Electron wrapper for the British National Formulary built with Nativefier + pkgver = 0.0.1 + pkgrel = 1 + url = https://bnf.nice.org.uk/ + arch = x86_64 + license = MIT + makedepends = nodejs + makedepends = nodejs-nativefier + makedepends = npm + source = bnf-nativefier.png + source = bnf-nativefier.desktop + sha256sums = df3534feaba4712d39a4b7e2c3c49542d5e9f587a857ad3233ffd808a7ff79d1 + sha256sums = e3b35b3c8ce7fe12eddef0cae641f3071cd7ae7c0fda7dd4bbd5de109a418948 + +pkgname = bnf-nativefier + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..861f26881667 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=bnf-nativefier +pkgver=0.0.1 +pkgrel=1 + + +pkgdesc="Electron wrapper for the British National Formulary built with Nativefier" +arch=(x86_64) +license=(MIT) +url=https://bnf.nice.org.uk/ +source=($pkgname.png + $pkgname.desktop) +makedepends=(nodejs nodejs-nativefier npm) +sha256sums=('df3534feaba4712d39a4b7e2c3c49542d5e9f587a857ad3233ffd808a7ff79d1' + 'e3b35b3c8ce7fe12eddef0cae641f3071cd7ae7c0fda7dd4bbd5de109a418948') + +_instname=bnf + +build() { + nativefier "https://bnf.nice.org.uk/" \ + --icon $pkgname.png \ + --maximize \ + --name $_instname \ + --user-agent "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/87.0" \ + --single-instance +} + +package() { + install -d "$pkgdir"/opt "$pkgdir"/usr/{bin,share/pixmaps} + install -Dm644 $pkgname.desktop "$pkgdir"/usr/share/applications/$_instname.desktop + + cp -rL $_instname-linux-* "$pkgdir"/opt/$pkgname + ln -sf /opt/$pkgname/$_instname "$pkgdir"/usr/bin/$_instname + ln -sf /opt/$pkgname/resources/app/icon.png "$pkgdir"/usr/share/pixmaps/$_instname.png + + chmod 666 "$pkgdir"/opt/$pkgname/resources/app/nativefier.json +} + diff --git a/bnf-nativefier.desktop b/bnf-nativefier.desktop new file mode 100644 index 000000000000..5d4f6f947a4f --- /dev/null +++ b/bnf-nativefier.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +# Type +Type=Application + +# Name +Name=BNF + +# Description +Comment=British National Formulary Website + +# Exec +Exec=bnf + +# Term +Terminal=false diff --git a/bnf-nativefier.png b/bnf-nativefier.png Binary files differnew file mode 100644 index 000000000000..fa1593048233 --- /dev/null +++ b/bnf-nativefier.png |