summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d02d612fd9aef70d74023894429b19c05d328e80 (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
# Maintainer: Amal Karunarathna <nasashinega@gmail.com>

_gitname=captain-frank-cursors
pkgname=captain-frank-cursors-git
pkgver=r18.78d8511
pkgrel=1
pkgdesc="An x-cursor theme heavily based on capitaine cursors and elementary (Mint) for use on my KDE desktop."
arch=('any')
url="https://github.com/ChrisP4/${_gitname}"
license=('GPL3')
makedepends=(git inkscape)
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)"
}

build() {
    cd $_gitname
    rm -rf ./dist
    chmod +x ./build.sh
    ./build.sh
}

package() {
    install -d ${pkgdir}/usr/share/icons/${_gitname}
    cp -rf ${srcdir}/${_gitname}/dist/* ${pkgdir}/usr/share/icons/${_gitname}
    find ${pkgdir}/usr -type f -exec chmod 644 {} \;
    find ${pkgdir}/usr -type d -exec chmod 755 {} \;
    find ${pkgdir}/usr -type f -name '.directory' -delete
}