summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2cb575ccb83b4710d80fd7ecc5f0fca9a71f917 (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
# Maintainer: Diab Neiroukh <officiallazerl0rd@gmail.com>

pkgname="layan-cursor-theme-git"
pkgver=0.0.0.7a37de2
pkgrel=4
pkgdesc='A x-cursor theme inspired by layan gtk theme and based on capitaine-cursors'
arch=("any")
url="https://github.com/vinceliuice/Layan-cursors"
license=("GPL3")
makedepends=("git")
provides=("layan-cursor-theme")
conflicts=("layan-cursor-theme")
source=("git+${url}.git")
b2sums=("SKIP")

pkgver()
{
    cd "Layan-cursors"
    if [ $(git tag|wc -l) == 0 ]; then
        echo "0.0.0.$(git log -1 --format='%h')"
    else
        git describe --tags | sed "s/-/.r/; s/-g/./"
    fi
}

package()
{
    if [ -z "${_cleancursordirname+x}" ]; then
        _cleancursordirname=false
    fi

    mkdir -p "${pkgdir}/usr/share/icons"
    
    cd "Layan-cursors"
    if [ "$_cleancursordirname" = "true" ]; then
        cp -r "dist" "${dst}/Layan Unraveled"
        cp -r "dist-border" "${dst}/Layan"
        cp -r "dist-white" "${dst}/Layan Reborn"
    else
        cp -r "dist" "${dst}/Layan-cursors"
        cp -r "dist-border" "${dst}/Layan-border-cursors"
        cp -r "dist-white" "${dst}/Layan-white-cursors"
    fi
}