[arch-commits] Commit in capitaine-cursors/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at archlinux.org
Thu Feb 20 16:00:02 UTC 2020
Date: Thursday, February 20, 2020 @ 16:00:01
Author: yan12125
Revision: 577280
upgpkg: capitaine-cursors 4-1; build all sizes to up XXXHD (144px)
Modified:
capitaine-cursors/trunk/PKGBUILD
----------+
PKGBUILD | 26 ++++++++++----------------
1 file changed, 10 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-02-20 15:33:34 UTC (rev 577279)
+++ PKGBUILD 2020-02-20 16:00:01 UTC (rev 577280)
@@ -2,32 +2,26 @@
# Contributor: Ye Jingchen <ye.jingchen at gmail.com>
pkgname=capitaine-cursors
-pkgver=3
-pkgrel=2
+pkgver=4
+pkgrel=1
pkgdesc="An x-cursor theme inspired by macOS and based on KDE Breeze"
arch=(any)
url="https://github.com/keeferrourke/capitaine-cursors"
license=(LGPL3)
-source=("$pkgname-$pkgver.tar.gz::https://github.com/keeferrourke/$pkgname/archive/r$pkgver.tar.gz")
-makedepends=(inkscape xorg-xcursorgen)
-sha256sums=('226258d7d07648c27d8ecfb2085a1af4bcc37e49df497fcd371950f7c42ae090')
+source=("https://github.com/keeferrourke/$pkgname/archive/r$pkgver/$pkgname-$pkgver.tar.gz")
+makedepends=(inkscape xorg-xcursorgen bc)
+sha256sums=('41f66e9f4d41729dc5e9185aab3bc4a719fdcca939e6f3f590b6b811b28dedd2')
-prepare() {
- cd $pkgname-r$pkgver
- # Remove prebuilt assets
- rm -rf dist/
-}
-
build() {
cd $pkgname-r$pkgver
- bash -e ./build.sh
+ for variant in dark light ; do
+ ./build.sh --max-dpi xxxhd --type $variant
+ done
}
package() {
cd $pkgname-r$pkgver
install -Ddm755 "$pkgdir/usr/share/icons"
- cp -dr --no-preserve=ownership dist/ "$pkgdir/usr/share/icons/capitaine-cursors"
- # inconsistency naming in upstream releases...
- # https://github.com/keeferrourke/capitaine-cursors/releases
- cp -dr --no-preserve=ownership dist-white/ "$pkgdir/usr/share/icons/capitaine-cursors-light"
+ cp -dr --no-preserve=ownership dist/dark/ "$pkgdir/usr/share/icons/capitaine-cursors"
+ cp -dr --no-preserve=ownership dist/light/ "$pkgdir/usr/share/icons/capitaine-cursors-light"
}
More information about the arch-commits
mailing list