summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 445d9910561f43390a9b9f2137eaac178bd93a76 (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
# Maintainer: Tony Lambiris <tony@libpcap.net>
pkgname=breeze-adapta-cursor-theme-git
_pkgname=Breeze-Adapta-Cursor
pkgver=r34.72ffeff
pkgrel=3
pkgdesc="Popular Breeze Cursor modified for Adapta theme."
arch=('any')
url="https://github.com/mustafaozhan/Breeze-Adapta-Cursor"
license=('GPL')
source=("git+https://github.com/mustafaozhan/Breeze-Adapta-Cursor")
makedepends=('git' 'unzip')
conflicts=('breeze-adapta-cursor-theme' 'xcursor-breeze-adapta')
provides=('breeze-adapta-cursor-theme' 'xcursor-breeze-adapta')
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"

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

package() {
	cd "${srcdir}/${_pkgname}"

    install -dm755 "${pkgdir}/usr/share/icons"
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"

    cp -a "${srcdir}/${_pkgname}" "${pkgdir}/usr/share/icons/Breeze-Adapta-Cursor"

    # fix icon cache rebuilding
    rename ' ' '-' "${pkgdir}/usr/share/icons/Breeze-Adapta-Cursor/cursors"/*
}