summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a0706554bd31d0790cd7321e4ad8d77a3810777f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Maintainer: Simone Scalabrino <s.scalabrino9@gmail.com>
_appname="whatsapp"
_appdesc="Standalone silo app for WhatsApp"
_gittag="0.1"

_gitname=silos-apps
pkgname="silo-${_appname}"
pkgver=$_gittag
pkgrel=1
pkgdesc="${_appdesc}"
arch=('i686' 'x86_64')
url="https://github.com/intersimone999/${_gitname}"
license=('GPL3')
depends=('silos' 'python-pystray')
makedepends=('git')
source=("git+$url.git")
sha256sums=('SKIP')

package() {
    cd "${srcdir}/${_gitname}/${_appname}"
    
    basefolder=$(python -c "import os;import pyqtws as _; print(os.path.dirname(_.__file__))")
    
    iconsfolder=${basefolder}/icons
    for f in ${srcdir}/${_gitname}/${_appname}/icons/*.svg
    do
        target=$(basename "$f")
        install -Dm755 "$f" "${pkgdir}/usr/share/pixmaps/silo-$target"
        install -Dm755 "$f" "${pkgdir}/${iconsfolder}/$target"
    done
    
    for f in ${srcdir}/${_gitname}/${_appname}/desktops/*.desktop
    do
        target=$(basename "$f")
        install -Dm755 "$f" "${pkgdir}/usr/share/applications/silo-$target"
    done
    
    appsfolder=${basefolder}/apps
    for f in ${srcdir}/${_gitname}/${_appname}/apps/*.qtws
    do
        target=$(basename "$f")
        install -Dm755 "$f" "${pkgdir}/${appsfolder}/$target"
    done
}