diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 49 |
1 files changed, 27 insertions, 22 deletions
@@ -1,45 +1,50 @@ # Maintainer: Shatur95 <genaloner@gmail.com> -# Co-Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> +# Co-Maintainer: Mark Wagie <mark dot wagie at proton dot me> # Contributor: ful1e5 <kaizmandhu at gmail dot com> pkgname=bibata-cursor-theme -pkgver=1.1.1 +pkgver=2.0.6 pkgrel=1 pkgdesc="Material Based Cursor Theme" arch=('any') url="https://github.com/ful1e5/Bibata_Cursor" -license=('GPL3') -depends=('libxcursor' 'libpng') -makedepends=('python-clickgen') +license=('GPL-3.0-or-later') +makedepends=('python-clickgen>=2.0.0') options=('!strip') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" - "$pkgname-bitmaps-$pkgver.zip::$url/releases/download/v$pkgver/bitmaps.zip") -noextract=("$pkgname-bitmaps-$pkgver.zip") -sha256sums=('fb195e48cd9669ee915c038e5138acf39a5e2175696b95e94b3095d9c7847204' - '9ec5b60c8de324f6ac732f17eb7c32ac4e5901df433703d746b9c13b45bb0479') + "$pkgname-$pkgver-bitmaps.zip::$url/releases/download/v$pkgver/bitmaps.zip") +noextract=("$pkgname-$pkgver-bitmaps.zip") +sha256sums=('a3095d6a49c2fef1f97963d3706cfcf19b2f29c0616f423f5a278714b60f2b19' + '651fd17ceec14ef1c148a32a96b83902e6a7f334396feca39f5eb15a7e1fef22') prepare() { - cd Bibata_Cursor-$pkgver - mkdir -p bitmaps - bsdtar -xf "$srcdir/$pkgname-bitmaps-$pkgver.zip" -C bitmaps + bsdtar xvf "$pkgname-$pkgver-bitmaps.zip" -C "Bibata_Cursor-$pkgver" + cd "Bibata_Cursor-$pkgver" rm -rf themes } build() { - cd Bibata_Cursor-$pkgver/builder - _themes='Amber Classic Ice' - _sizes='22 24 28 32 40 48 56 64 72 80 88 96' + cd "Bibata_Cursor-$pkgver" - set -- ${_sizes} - for t in ${_themes}; do - python build.py unix -p "../bitmaps/Bibata-Modern-$t" --xsizes ${_sizes[@]} - python build.py unix -p "../bitmaps/Bibata-Original-$t" --xsizes ${_sizes[@]} + declare -A names + names["Bibata-Modern-Amber"]="Yellowish and rounded edge Bibata cursors." + names["Bibata-Modern-Classic"]="Black and rounded edge Bibata cursors." + names["Bibata-Modern-Ice"]="White and rounded edge Bibata cursors." + names["Bibata-Original-Amber"]="Yellowish and sharp edge Bibata cursors." + names["Bibata-Original-Classic"]="Black and sharp edge Bibata cursors." + names["Bibata-Original-Ice"]="White and sharp edge Bibata cursors." + + for key in "${!names[@]}"; do + comment="${names[$key]}" + ctgen build.toml -p x11 -d "bitmaps/$key" -n "$key" -c "$comment" & + PID=$! + wait $PID done } package() { - cd Bibata_Cursor-$pkgver - install -d "$pkgdir"/usr/share/icons - cp -r themes/Bibata-* "$pkgdir"/usr/share/icons + cd "Bibata_Cursor-$pkgver" + install -d "$pkgdir/usr/share/icons" + cp -r themes/Bibata-* "$pkgdir/usr/share/icons/" } |