summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d816226eb498c4e3309a7451e7a4a679b2e2b5d1 (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
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>

pkgname=mcmojave-cursors-git
pkgver=r9.d3a9b60
pkgrel=1
pkgdesc='x-cursor theme inspired by macOS and based on capitaine-cursors'
url='https://github.com/vinceliuice/McMojave-cursors'
license=('GPL')
arch=('any')
source=("${pkgname}::git+https://github.com/vinceliuice/McMojave-cursors.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"

  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

package() {
  cd "${pkgname}"

  install -dm0755 "${pkgdir}/usr/share/icons/${pkgname%-git}"
  cp -r dist/* "${pkgdir}/usr/share/icons/${pkgname%-git}"

  install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}