summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a536b58417d53aac0ac9e03dc51302c5c51f28c (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
# Contributor: Daniel Miranda (dmiranda)
# Maintainer: Gustavo Costa (gusbemacbe)

_gitname=suru-plus
pkgname=suru-plus-git
pkgver=20.3.0
pkgrel=1
pkgdesc="Suru++ 20 — A cyberpunk, elegant, futuristic and modern third-party icons theme!"
arch=('any')
url="https://github.com/gusbemacbe/${_gitname}"
license=('GPL3')
makedepends=('git')
options=('!strip')
conflicts=(${_gitname})
source=("git+${url}.git")
sha256sums=('SKIP')

pkgver() 
{
    cd ${_gitname}
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() 
{
    # Installing the icons theme
    install -d ${pkgdir}/usr/share/icons

    # Copying to the /usr/share/icons/ and changing name to "Suru++ 20"
    cp -r "${srcdir}"/suru-plus "${pkgdir}"/usr/share/icons/Suru++\ 20

    find ${pkgdir}/usr -type f -exec chmod 644 {} \;
    find ${pkgdir}/usr -type d -exec chmod 755 {} \;

    # Removing unncessary .directory files
    find ${pkgdir}/usr -type f -name '.directory' -delete

    # Deleting unneeded files
    rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/.git
    rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/.gitignore
    rm -r "$pkgdir"/usr/share/icons/Suru++\ 20/*.md
    rm -R "$pkgdir"/usr/share/icons/Suru++\ 20/images
    rm -R "$pkgdir"/usr/share/icons/Suru++\ 20/templates
}