summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3c68a402bfa7d36abe134e2aff75fc1bdd6dc873 (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
# Maintainer: Batuhan Baserdem <lastn.firstn[at]gmail>
# Release package by: Mark Wagie <mark dot wagie at tutanota dot com>
name=Vimix-cursors
pkgname=vimix-cursors-git
pkgver=2020.02.24.r3.gde8100f
pkgrel=1
pkgdesc="X-cursor theme inspired by Materia design"
arch=("any")
url="https://github.com/vinceliuice/${name}"
license=("GPL3")
makedepends=('python-cairosvg' 'xorg-xcursorgen' 'git')
provides=('vimix-cursors')
conflicts=('vimix-cursors')
source=("git+${url}")
sha512sums=('SKIP')
pkgver() {
    cd "${srcdir}/${name}"
    git describe --long --tags | sed 's|\([^-]*-g\)|r\1|;s|-|.|g;s|^v||g'
}
prepare() {
    cd "${srcdir}/${name}"
    # Remove prebuilt assests 
    rm -rf {dist,dist-white}
    # Patch the build script to not use the nonexistent -z flag
    # Change the outdated -e flag to --export-filename
    #sed -i 's|inkscape -z -e|inkscape --export-filename|g' build.sh
}
build() {
    cd "${srcdir}/${name}"
    ./build.sh
}

package() {
    cd "${srcdir}/${name}"
    install -dm 0755 "${pkgdir}/usr/share/icons/${name}"
    install -dm 0755 "${pkgdir}/usr/share/icons/${name}-white"
    cp -drf "${srcdir}/${name}/dist/"* "${pkgdir}/usr/share/icons/${name}"
    cp -drf "${srcdir}/${name}/dist-white/"* "${pkgdir}/usr/share/icons/${name}-white"
}