summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4146f26e14d1229c9e8a303b33273ccf0632aac (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: Shatur95 <genaloner@gmail.com>
# Co-Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: ful1e5 <kaizmandhu at gmail dot com>

pkgname=bibata-cursor-theme
pkgver=2.0.0
pkgrel=1
pkgdesc="Material Based Cursor Theme"
arch=('any')
url="https://github.com/ful1e5/Bibata_Cursor"
license=('GPL3')
depends=('libxcursor' 'libpng')
makedepends=('python-clickgen>=2.0.0')
options=('!strip')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
sha256sums=('c27c40ffde4338cccf71d8ba8977be745dfdfd9caa7753587c72ead021858f19')

prepare() {
  cd Bibata_Cursor-$pkgver
  rm -rf themes
}

build() {
  cd Bibata_Cursor-$pkgver
  echo "Building 'Bibata Modern Amber' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Modern-Amber' \
    -c 'Yellowish and rounded edge Bibata cursors.' \
    -d 'bitmaps/Bibata-Modern-Amber'

  echo "Building 'Bibata Original Amber' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Original-Amber' \
    -c 'Yellowish and sharp edge Bibata cursors.' \
    -d 'bitmaps/Bibata-Original-Amber'

  echo "Building 'Bibata Modern Classic' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Modern-Classic' \
    -c 'Black and rounded edge Bibata cursors.' \
    -d 'bitmaps/Bibata-Modern-Classic'

  echo "Building 'Bibata Original Classic' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Original-Classic' \
    -c 'Black and sharp edge Bibata cursors.' \
    -d 'bitmaps/Bibata-Original-Classic'

  echo "Building 'Bibata Modern Ice' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Modern-Ice' \
    -c 'White and rounded edge Bibata cursors.' \
    -d 'bitmaps/Bibata-Modern-Ice'

  echo "Building 'Bibata Original Ice' Cursors"
  ctgen build.toml -p 'x11' -n 'Bibata-Original-Ice' \
    -c 'White and sharp edge bibata cursors.' \
    -d 'bitmaps/Bibata-Original-Ice'
}

package() {
  cd Bibata_Cursor-$pkgver
  install -d "$pkgdir"/usr/share/icons
  cp -r themes/Bibata-* "$pkgdir"/usr/share/icons/
}