summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2018-12-20 11:03:40 -0500
committerfrealgagu2018-12-20 11:03:40 -0500
commit31283f5e4509c4e5e284496397df89f11baf5ce0 (patch)
treeaf421b8ab42810f2c456b06f3f206acf3335ddfd
parent81a664674f9626b091a2cea3c9ebc972ea1ce450 (diff)
downloadaur-31283f5e4509c4e5e284496397df89f11baf5ce0.tar.gz
Adding icons to /usr/share/icons/hicolor folder.
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD12
2 files changed, 10 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0af48bf98cf..b404346f504 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,13 @@
pkgbase = whatsapp-nativefier
pkgdesc = WhatsApp desktop built with nativefier (electron)
- pkgver = 0.3.1649
+ pkgver = 0.3.1846
pkgrel = 1
url = https://web.whatsapp.com
arch = armv7l
arch = i686
arch = x86_64
license = custom
+ makedepends = imagemagick
makedepends = nodejs-nativefier
depends = gtk3
depends = libxss
diff --git a/PKGBUILD b/PKGBUILD
index 2c2416d0c58..949e0f772db 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
pkgname=whatsapp-nativefier
-pkgver=0.3.1649
+pkgver=0.3.1846
pkgrel=1
pkgdesc="WhatsApp desktop built with nativefier (electron)"
arch=("armv7l" "i686" "x86_64")
url="https://web.${pkgname%-nativefier}.com"
license=("custom")
depends=("gtk3" "libxss" "nss")
-makedepends=("nodejs-nativefier")
+makedepends=("imagemagick" "nodejs-nativefier")
source=("${pkgname}.png"
"${pkgname}.desktop"
"${pkgname}-inject.js")
@@ -31,12 +31,16 @@ build() {
}
package() {
- install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname},pixmaps}}}
+ install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
cp -rL "${srcdir}/whats-app-linux-"* "${pkgdir}/opt/${pkgname}"
ln -s "/opt/${pkgname}/whats-app" "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm755 "${pkgdir}/opt/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
- install -Dm755 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ 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
}