summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaurabh0003452020-11-08 02:54:49 +0530
committersaurabh0003452020-11-08 02:54:49 +0530
commit6f68e0025b70d112949cfff2af4829a9ccc99897 (patch)
treea0556b2078161bd8636b9a5aa1333445a7e7bcd0
downloadaur-6f68e0025b70d112949cfff2af4829a9ccc99897.tar.gz
Pushing first version
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD34
-rw-r--r--soundcloud-nativefier.desktop10
-rw-r--r--soundcloud-nativefier.pngbin0 -> 11946 bytes
4 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c6db968ada2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = soundcloud-nativefier
+ pkgdesc = Stream great music! SoundCloud Client built with nodejs-nativefier (electron)
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://soundcloud.com/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = imagemagick
+ makedepends = nodejs-nativefier
+ depends = gtk3
+ depends = libxss
+ depends = nss
+ optdepends = libindicator-gtk3
+ source = soundcloud-nativefier.desktop
+ source = soundcloud-nativefier.png
+ sha256sums = b10535d6488d742bcbb3b334e936156bb2682b748507389927399dc0fa65f1d9
+ sha256sums = 8d44f32553624110623423ec3f34181c27f5b5453efbd67ca5525e446c64be3f
+
+pkgname = soundcloud-nativefier
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0ff65307a34
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Saurabh Kumar Sharma <saurabh000345 at gmail dot com>
+
+pkgname=soundcloud-nativefier
+pkgver=1.0
+pkgrel=1
+pkgdesc="Stream great music! SoundCloud Client built with nodejs-nativefier (electron)"
+arch=("i686" "x86_64")
+url="https://soundcloud.com/"
+license=("GPL")
+depends=("gtk3" "libxss" "nss")
+optdepends=("libindicator-gtk3")
+makedepends=("imagemagick" "nodejs-nativefier")
+
+source=("${pkgname}.desktop" "${pkgname}.png")
+sha256sums=("b10535d6488d742bcbb3b334e936156bb2682b748507389927399dc0fa65f1d9"
+ "8d44f32553624110623423ec3f34181c27f5b5453efbd67ca5525e446c64be3f")
+
+build() {
+ cd "${srcdir}"
+ nativefier "https://soundcloud.com" --user-agent 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0' --name "SoundCloud" --internal-urls ".*soundcloud.com.*" -m -i "${pkgname}.png"
+}
+
+package() {
+ install -dm755 "${pkgdir}/"{opt,usr/share/applications,usr/bin}
+ cp -rL "${srcdir}/SoundCloud-linux"* "${pkgdir}/opt/${pkgname}"
+ chmod +x "${pkgdir}/opt/${pkgname}/SoundCloud"
+ ln -s "/opt/${pkgname}/SoundCloud" "${pkgdir}/usr/bin/${pkgname}"
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ 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/soundcloud-nativefier.desktop b/soundcloud-nativefier.desktop
new file mode 100644
index 00000000000..b3e43b96446
--- /dev/null
+++ b/soundcloud-nativefier.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=SoundCloud
+Comment=SoundCloud client built on nodejs nativefier (electron)
+Exec=soundcloud-nativefier
+Icon=soundcloud-nativefier
+Encoding=UTF-8
+Terminal=false
+StartupNotify=true
+Type=Application
+Categories=Network;Internet;Multimedia;
diff --git a/soundcloud-nativefier.png b/soundcloud-nativefier.png
new file mode 100644
index 00000000000..2eed91b4f86
--- /dev/null
+++ b/soundcloud-nativefier.png
Binary files differ