summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrealgagu2020-02-08 12:57:20 -0500
committerfrealgagu2020-02-08 12:57:20 -0500
commit69afb48133140d515b48dd0b60e774b5fca6bf4d (patch)
treeada7c84f425b600f395051dc5e1bc1e6db4e4b9e
parentc79ea641d55081f3c4cc0afe64bbf7a5cc33e6e7 (diff)
downloadaur-69afb48133140d515b48dd0b60e774b5fca6bf4d.tar.gz
Using correct folder and binary names regardless of generated ones by nativefier.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b0832001f59..3c391af5be5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = whatsapp-nativefier
pkgdesc = WhatsApp desktop built with nativefier (electron)
- pkgver = 0.4.607
+ pkgver = 0.4.612
pkgrel = 1
url = https://web.whatsapp.com
arch = armv7l
diff --git a/PKGBUILD b/PKGBUILD
index a50b6ce83d3..af9d213ac34 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Fredy GarcĂ­a <frealgagu at gmail dot com>
pkgname=whatsapp-nativefier
-pkgver=0.4.607
+pkgver=0.4.612
pkgrel=1
pkgdesc="WhatsApp desktop built with nativefier (electron)"
arch=("armv7l" "i686" "x86_64")
@@ -38,8 +38,10 @@ build() {
package() {
install -dm755 "${pkgdir}/"{opt,usr/{bin,share/{applications,licenses/${pkgname}}}}
- cp -rL "${srcdir}/WhatsApp-linux-"* "${pkgdir}/opt/${pkgname}"
- ln -s "/opt/${pkgname}/WhatsApp" "${pkgdir}/usr/bin/${pkgname}"
+ _folder=$(ls -l "${srcdir}" | grep "[Ww]hats[-]*[Aa]pp-linux-" | awk '{print $9}')
+ _binary=$(ls -l "${srcdir}/${_folder}" | grep "[Ww]hats[-]*[Aa]pp" | awk '{print $9}')
+ cp -rL "${srcdir}/${_folder}" "${pkgdir}/opt/${pkgname}"
+ ln -s "/opt/${pkgname}/${_binary}" "${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"