summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 28a91f8062eca669e266db6167ca957bfccd2464 (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
# Maintainer: Sainnhe Park <sainnhe@gmail.com>

pkgname=capitaine-cursors-sainnhe-git
pkgver=5.r19.g9b12de9
pkgrel=1
pkgdesc="Sainnhe's fork of capitaine cursor theme, patched with some additional variants (Gruvbox, Nord, Palenight)"
arch=(any)
url="https://github.com/sainnhe/capitaine-cursors"
license=(LGPL3)
source=("git+${url}.git#branch=master")
provides=('capitaine-cursors')
conflicts=('capitaine-cursors')
makedepends=(git libx11 libxcursor libpng nodejs yarn python python-pip)
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/capitaine-cursors"
  git describe origin/master --long --tags | sed 's/^r//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/capitaine-cursors"
  install -Ddm755 "$pkgdir/usr/share/icons"
  for style in Default Nord Gruvbox Palenight ; do
    ./patch.sh "${style}"
    make unix
    cp -dr --no-preserve=ownership "themes/*" "$pkgdir/usr/share/icons/"
    git checkout -- .
  done
}