summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a2eec2a9096d25b75987086d3dcae41c54a1cdd (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
36
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Batuhan Baserdem <lastn.firstn[at]gmail>
pkgname=material-cursors-git
pkgver=20220817.r43.2a5f302
pkgrel=1
pkgdesc="Material cursors with 3 color variants"
arch=('any')
url="https://github.com/varlesh/material-cursors"
license=('GPL-2.0-or-later')
makedepends=('git' 'inkscape' 'libcanberra' 'xorg-xcursorgen')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/varlesh/material-cursors.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname%-git}"
  printf "%s.r%s.%s" "$(git show -s --format=%cd --date=format:%Y%m%d HEAD)" \
    "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "${pkgname%-git}"
  make clean
}

build() {
  cd "${pkgname%-git}"
  export NO_AT_BRIDGE=1
  make build
}

package() {
  cd "${pkgname%-git}"
  make DESTDIR="${pkgdir}" install
}