summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD47
-rw-r--r--vrr-app.desktop10
-rw-r--r--vrr-app.pngbin0 -> 3204 bytes
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2cdd6ba1bdb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = vrr-app
+ pkgdesc = VRR Fahrplanauskunft built with nativefier (electron)
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://www.facebook.com
+ arch = armv7l
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = imagemagick
+ makedepends = nodejs-nativefier
+ depends = gtk3
+ depends = libxss
+ depends = nss
+ optdepends = libindicator-gtk3
+ source = vrr-app.png
+ source = vrr-app.desktop
+ sha256sums = ce248a8392a7a7c75edc50362aec103d5f98051d0567e57170c606d41cf67ec2
+ sha256sums = 957a502cf84304617cb5e89075ea9ac86681514769e3b839bc50d1c199888d32
+
+pkgname = vrr-app
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1e307bfbff0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: NobodyDBG <niemandausduisburg@gmx.net>
+
+pkgname=vrr-app
+pkgver=1.0
+pkgrel=1
+pkgdesc="VRR Fahrplanauskunft built with nativefier (electron)"
+arch=("armv7l" "i686" "x86_64")
+url="https://www.facebook.com"
+license=("custom")
+depends=("gtk3" "libxss" "nss")
+optdepends=("libindicator-gtk3")
+makedepends=("imagemagick" "nodejs-nativefier")
+source=(
+ "${pkgname}.png"
+ "${pkgname}.desktop")
+sha256sums=(
+ "ce248a8392a7a7c75edc50362aec103d5f98051d0567e57170c606d41cf67ec2"
+ "957a502cf84304617cb5e89075ea9ac86681514769e3b839bc50d1c199888d32"
+)
+
+build() {
+ cd "${srcdir}"
+
+ nativefier \
+ --name "VRR-App" \
+ --icon "${pkgname}.png" \
+ --width "800px" \
+ --height "600px" \
+ --verbose \
+ --single-instance \
+ --tray \
+ "http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&itdLPxx_transpCompany=vrr"
+}
+
+package() {
+ install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
+
+ cp -rL "${srcdir}/VRR-App-linux-x64"* "${pkgdir}/opt/${pkgname}"
+ ln -s "/opt/${pkgname}/VRR-App" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ install -Dm644 "${pkgdir}/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
+ do
+ install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
+ convert "${srcdir}/${pkgname}.png" -resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
+ done
+}
diff --git a/vrr-app.desktop b/vrr-app.desktop
new file mode 100644
index 00000000000..25c1bc33dd8
--- /dev/null
+++ b/vrr-app.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=VRR Fahrplanauskunft
+Comment="VRR Fahrplanauskunft built with nativefier (electron)"
+Exec=VRR-App
+Icon=VRR-App
+Encoding=UTF-8
+Terminal=false
+StartupNotify=true
+Type=Application
+Categories=Network;Application;
diff --git a/vrr-app.png b/vrr-app.png
new file mode 100644
index 00000000000..ea379bad2bf
--- /dev/null
+++ b/vrr-app.png
Binary files differ