Date: Saturday, October 29, 2022 @ 16:21:16
Author: yan12125
Revision: 1339189
archrelease: copy trunk to community-any
Added:
capitaine-cursors/repos/community-any/PKGBUILD
(from rev 1339187, capitaine-cursors/trunk/PKGBUILD)
capitaine-cursors/repos/community-any/inkscape-needs-integers.diff
(from rev 1339187, capitaine-cursors/trunk/inkscape-needs-integers.diff)
Deleted:
capitaine-cursors/repos/community-any/PKGBUILD
------------------------------+
PKGBUILD | 67 ++++++++++++++++++++++++-----------------
inkscape-needs-integers.diff | 13 +++++++
2 files changed, 53 insertions(+), 27 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-10-29 16:21:14 UTC (rev 1339188)
+++ PKGBUILD 2022-10-29 16:21:16 UTC (rev 1339189)
@@ -1,27 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <[email protected]>
-# Contributor: Ye Jingchen <[email protected]>
-
-pkgname=capitaine-cursors
-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=("https://github.com/keeferrourke/$pkgname/archive/r$pkgver/$pkgname-$pkgver.tar.gz")
-makedepends=(inkscape xorg-xcursorgen bc)
-sha256sums=('41f66e9f4d41729dc5e9185aab3bc4a719fdcca939e6f3f590b6b811b28dedd2')
-
-build() {
- cd $pkgname-r$pkgver
- 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/dark/
"$pkgdir/usr/share/icons/capitaine-cursors"
- cp -dr --no-preserve=ownership dist/light/
"$pkgdir/usr/share/icons/capitaine-cursors-light"
-}
Copied: capitaine-cursors/repos/community-any/PKGBUILD (from rev 1339187,
capitaine-cursors/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-10-29 16:21:16 UTC (rev 1339189)
@@ -0,0 +1,40 @@
+# Maintainer: Chih-Hsuan Yen <[email protected]>
+# Contributor: Ye Jingchen <[email protected]>
+
+pkgname=capitaine-cursors
+pkgver=4
+pkgrel=2
+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=("https://github.com/keeferrourke/$pkgname/archive/r$pkgver/$pkgname-$pkgver.tar.gz"
+ "inkscape-needs-integers.diff")
+makedepends=(inkscape xorg-xcursorgen bc xorg-server-xvfb)
+sha256sums=('41f66e9f4d41729dc5e9185aab3bc4a719fdcca939e6f3f590b6b811b28dedd2'
+ '0d83edb268c84a1889cf921c8e1789c609fa191e3bc7fa2ddb70702033713179')
+
+prepare() {
+ cd $pkgname-r$pkgver
+ # From https://github.com/keeferrourke/capitaine-cursors/pull/44
+ sed -i 's#-z -e#-o#' build.sh
+ # Fixes "Cannot parse integer value" warnings from inkscape
+ # Inspired by https://unix.stackexchange.com/a/320703
+ # See also
https://github.com/keeferrourke/capitaine-cursors/issues/43#issuecomment-590098233
+ patch -Np1 -i ../inkscape-needs-integers.diff
+}
+
+build() {
+ cd $pkgname-r$pkgver
+ for variant in dark light ; do
+ # Run in a virtual Xorg server to avoid warnings from Inkscape `Failed to
wrap object of type 'GtkRecentManager'`
+ xvfb-run --auto-display ./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/dark/
"$pkgdir/usr/share/icons/capitaine-cursors"
+ cp -dr --no-preserve=ownership dist/light/
"$pkgdir/usr/share/icons/capitaine-cursors-light"
+}
Copied: capitaine-cursors/repos/community-any/inkscape-needs-integers.diff
(from rev 1339187, capitaine-cursors/trunk/inkscape-needs-integers.diff)
===================================================================
--- inkscape-needs-integers.diff (rev 0)
+++ inkscape-needs-integers.diff 2022-10-29 16:21:16 UTC (rev 1339189)
@@ -0,0 +1,13 @@
+--- a/build.sh 2022-10-18 00:54:24.319840199 +0800
++++ b/build.sh 2022-10-18 00:54:33.839454372 +0800
+@@ -104,8 +104,8 @@
+ function render {
+ name="x$1"
+ variant="$2"
+- size=$(echo "$SVG_DIM*$1" | bc)
+- dpi=$(echo "$SVG_DPI*$1" | bc)
++ size=$(echo "$SVG_DIM*$1/1" | bc)
++ dpi=$(echo "$SVG_DPI*$1/1" | bc)
+
+ mkdir -p "$BUILD_DIR/$variant/$name"
+ find "$SRC/svg/$variant" -name "*.svg" -type f \