1
0
mirror of https://gitlab.com/ykkzde/posy-cursors synced 2024-10-27 20:44:10 +00:00

Compare commits

...

No commits in common. "master" and "v1.4" have entirely different histories.
master ... v1.4

4596 changed files with 745 additions and 3997 deletions

13
.gitignore vendored
View File

@ -1,12 +1 @@
Main/Black/x1/
Main/Black/x1_25/
Main/Black/x1_5/
Main/BlackTiny/x1/
Main/BlackTiny/x1_25/
Main/BlackTiny/x1_5/
Main/White/x1/
Main/White/x1_25/
Main/White/x1_5/
Main/WhiteTiny/x1/
Main/WhiteTiny/x1_25/
Main/WhiteTiny/x1_5/
/archives

View File

@ -1,79 +0,0 @@
stages:
- package
package-aur:
image: archlinux/base
stage: package
dependencies: []
only:
- /^v(\d+\.)*\d+$/
before_script: []
script:
- cd ./pkg/aur
- _version=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
- echo "Pushing'v$_version'"
<<<<<<< HEAD
- sourceURL=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$_version/cursorsPosy-v$_version.tar.gz?path=themes
- 'echo "Source: $sourceURL"'
- echo "Checking sha256sum checksums"
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
=======
# Determine remote URLs and SHA checksums
- echo "Determining SHA checksums for remote files..."
- URL_SOURCE=https://git.auteiy.me/dmitry/cursorsPosy/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz
- 'echo "Selected source URL: $URL_SOURCE"'
- echo "Determining sha256sum for remote source..."
- 'SHA_SOURCE=$(curl -sSL "$URL_SOURCE" | sha256sum | cut -d" " -f1)'
- 'echo "Got sha256sum: $SHA_SOURCE"'
>>>>>>> 1adbf2c... Fix source url
# Update PKGBUILD version, source URL and sha256sum
- echo "Updating PKGBUILDS with release information..."
<<<<<<< HEAD
- sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
- sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD
=======
- sed "s/^pkgver=.*\$/pkgver=$VERSION/" -i posy-cursors/PKGBUILD
- sed "s/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $URL_SOURCE | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
- sed "s/^sha256sums=.*\$/sha256sums=('$SHA_SOURCE')/" -i posy-cursors/PKGBUILD
# Get SHA hash for local and remote file w/o version, update if it has changed
# - 'SHA_STRIP_LOCAL=$(cat ffsend-git/PKGBUILD | sed /^pkgver=.\*/d | sha256sum | cut -d" " -f1)'
# - 'SHA_STRIP_REMOTE=$(curl -sSL "https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=ffsend-git" | sed /^pkgver=.\*/d | sha256sum | cut -d" " -f1)'
>>>>>>> 1adbf2c... Fix source url
- echo "Installing Arch"
- pacman -Syu --noconfirm sudo base-devel openssh git openssl
# makepkg and .SRCINFO
- cd posy-cursors/
- echo "makepkg"
- sudo -u nobody makepkg -c
- sudo -u nobody makepkg --printsrcinfo > .SRCINFO
- cd ..
# Configure SSH
- mkdir -p /root/.ssh
- cp ./aur.pub /root/.ssh/id_rsa.pub
- echo "$sshAUR" | base64 -d > /root/.ssh/id_rsa
- echo "Host aur.archlinux.org" >> /root/.ssh/config
- echo " IdentityFile /root/.ssh/aur" >> /root/.ssh/config
- echo " User aur" >> /root/.ssh/config
- chmod 600 /root/.ssh/{id_rsa*,config}
- eval `ssh-agent -s`
- echo -en "${sshPASSPHRASE}" | ssh-add /root/.ssh/id_rsa
- ssh-keyscan -H aur.archlinux.org >> /root/.ssh/known_hosts
- git config --global user.name "Dmitry Porunov"
- git config --global user.email "dmitry@auteiy.me"
# Clone, commit and push
- git clone ssh://aur@aur.archlinux.org/posy-cursors.git aur-posy-cursors
- cd aur-posy-cursors
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./
- git add PKGBUILD .SRCINFO
- git commit -m "Release v$_version"
- git push
- cd ..

View File

@ -1,10 +1,5 @@
## Preview
![Preview](https://www.dropbox.com/s/mul36o4usbkdoxd/Preview.png?raw=1)
### Original
http://www.michieldb.nl/other/cursors/
https://michieldb.nl/other/cursors/
##### Build script from here
https://github.com/keeferrourke/capitaine-cursors
@ -21,45 +16,9 @@ https://github.com/keeferrourke/capitaine-cursors
### Manual
##### Build
You'll need:
`imagemagick` for converting images to different sizes
`xcursorgen` for creating **Xcursor** files
Run `bash src/create.sh`
`cd themes`
Copy `posy-*` folders to `~/.icons`
##### Download
Download this [archive](https://git.auteiy.me/dmitry/cursorsPosy/-/archive/master/cursorsPosy-master.tar.gz?path=themes)
Extract it
`cd cursorsPosy-master-themes/themes`
Copy `posy-*` folders to `~/.icons`
Copy `posy-default` folder to `~/.icons`
---
#### After installation you can preview some of the cursors in action here
#### You can preview some of the cursors in action here
https://codepen.io/chriscoyier/pen/uCwfB
### Special Thanks
##### To [Keefer Rourke](https://github.com/keeferrourke) for his [Capitaine Cursors](https://github.com/keeferrourke/capitaine-cursors) theme, from which I took scripts whole repository structure.
##### To [Patrick Gordon](https://github.com/paddygord) for creating [ani2 ico converter](https://github.com/paddygord/cursor-converter/) from Windows's formats
##### To FisHlaBsoMAN for creating [localemouse](https://bitbucket.org/group-of-coders/localemouse/src/master/) software that check current cursor in use.

69
build.sh Executable file
View File

@ -0,0 +1,69 @@
#!/bin/bash
# Capitaine cursors, macOS inspired cursors based on KDE Breeze
# Copyright (c) 2016 Keefer Rourke <keefer.rourke@gmail.com>
# Modified to include white cursors by Efus10n - 4 Mar 2019
function create {
cd "$SRC"
mkdir -p x1 x1_25 x1_5 x2
# generate cursors
if [[ "$THEME" =~ White$ ]]; then
BUILD="$SRC"/../dist-white
else BUILD="$SRC"/../posy-default
fi
OUTPUT="$BUILD"/cursors
ALIASES="$SRC"/cursorList
if [ ! -d "$BUILD" ]; then
mkdir "$BUILD"
fi
if [ ! -d "$OUTPUT" ]; then
mkdir "$OUTPUT"
fi
echo -ne "Generating cursor theme...\\r"
for CUR in config/*.cursor; do
BASENAME="$CUR"
BASENAME="${BASENAME##*/}"
BASENAME="${BASENAME%.*}"
xcursorgen "$CUR" "$OUTPUT/$BASENAME"
done
echo -e "Generating cursor theme... DONE"
cd "$OUTPUT"
#generate aliases
echo -ne "Generating shortcuts...\\r"
while read ALIAS; do
FROM="${ALIAS#* }"
TO="${ALIAS% *}"
if [ -e $TO ]; then
continue
fi
ln -sr "$FROM" "$TO"
done < "$ALIASES"
echo -e "Generating shortcuts... DONE"
cd "$PWD"
echo -ne "Generating Theme Index...\\r"
INDEX="$OUTPUT/../index.theme"
if [ ! -e "$OUTPUT/../$INDEX" ]; then
touch "$INDEX"
echo -e "[Icon Theme]\nName=$THEME\n" > "$INDEX"
fi
echo -e "Generating Theme Index... DONE"
}
# generate pixmaps from svg source
SRC=$PWD/src
THEME="Posy Default"
create svg
# THEME="Capitaine Cursors - White"
# create svg-white

View File

@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHfiNi+rOCPKGLB6v9uuYR6GkN6Zd+CdaRbV82A26AUzs48ZG0xZGXHsoRuZY/yCUhcrS2u9xZ16fsAxnyf1QCF1hZVABUYtNhL1eEbSbLNiG9vIWJzbRjgegN/yyiG9ZVhFfNqXtPeapvuM3H44a2XeeFJcvTOfj/alkVjypi/DY/+XpC1IlX+CARC/e0zXHa3KZohn+CfBj8kWZWQEr7+EtKT59pslNxuJPcDUw7sKYLcBBz00BT0vv3lntyvZI1rRsD7AvItOwSZPp6or78Tgp8+O0HvFpjrlNipPEqDPpETIPcjTIVAlvlPFK1J0Rpzud38YdoWGfPiM77k7L7 timvisee@aur

View File

@ -1,21 +0,0 @@
# Maintainer: Auteiy <dmitry@auteiy.me>
pkgname=posy-cursors
pkgver=0.0.0 # automatically set in CI, see: /.gitlab-ci.yml
pkgrel=1
pkgdesc="Port of Posy's improved cursors"
arch=(any)
url="https://git.auteiy.me/dmitry/cursorsPosy"
license=(unknown)
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/v$pkgver/cursorsPosy-v$pkgver.tar.gz?path=themes") # automatically set in CI, see: /.gitlab-ci.yml
sha256sums=('SKIP') # automatically set in CI, see: /.gitlab-ci.yml
package() {
cd cursorsPosy-v$pkgver-themes/themes
install -Ddm755 "$pkgdir/usr/share/icons"
cp -dr --no-preserve=ownership posy-white/ "$pkgdir/usr/share/icons/posy-white"
cp -dr --no-preserve=ownership posy-black/ "$pkgdir/usr/share/icons/posy-black"
cp -dr --no-preserve=ownership posy-white-tiny/ "$pkgdir/usr/share/icons/posy-white-tiny"
cp -dr --no-preserve=ownership posy-black-tiny/ "$pkgdir/usr/share/icons/posy-black-tiny"
}

BIN
posy-default/cursors/alias Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
posy-default/cursors/cell Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
posy-default/cursors/copy Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
posy-default/cursors/draft Normal file

Binary file not shown.

BIN
posy-default/cursors/fleur Normal file

Binary file not shown.

BIN
posy-default/cursors/help Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
posy-default/cursors/pencil Normal file

Binary file not shown.

BIN
posy-default/cursors/pirate Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
posy-default/cursors/text Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More