summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ee368a1adfa34678acaff4ee8b6b578e890b65b4 (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
# Maintainer: Yukina <thienphuc3230 at gmail dot com>

_pkgname="qogir-cursor-theme"
pkgname="${_pkgname}-git"
gitname="Qogir-icon-theme"
pkgver=r297.0b909051
pkgrel=1
pkgdesc="An x-cursor theme inspired by Qogir theme and based on capitaine-cursors"
arch=("any")
url="https://github.com/vinceliuice/${gitname}"
license=("GPL3")
makedepends=("git")
provides=("${_pkgname}")
source=("git+${url}.git")
sha256sums=("SKIP")

pkgver() {
  cd "${srcdir}/${gitname}/src/cursors/"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -d "${pkgdir}/usr/share/icons/"
  cd "${srcdir}/${gitname}/src/cursors/"
  cp -r dist/ ${pkgdir}/usr/share/icons/Qogir-cursors/
  cp -r dist-Dark/ ${pkgdir}/usr/share/icons/Qogir-white-cursors/
  cp -r dist-Ubuntu/ ${pkgdir}/usr/share/icons/Qogir-Ubuntu-cursors/
  cp -r dist-Ubuntu-Dark/ ${pkgdir}/usr/share/icons/Qogir-Ubuntu-white-cursors/
  cp -r dist-Manjaro/ ${pkgdir}/usr/share/icons/Qogir-Manjaro-cursors/
  cp -r dist-Manjaro-Dark/ ${pkgdir}/usr/share/icons/Qogir-Manjaro-white-cursors/
}