Compare commits

...

9 Commits

Author SHA1 Message Date
Dmitry Porunov
63aedac5c0 Just to see what happens 2020-06-24 21:13:09 +03:00
Dmitry Porunov
d34260d45a Just to see what happens 2020-06-24 21:10:06 +03:00
Dmitry Porunov
7e752d8e05 Just to see what happens 2020-06-24 21:07:11 +03:00
Dmitry Porunov
696e3fcd27 Just to see what happens 2020-06-24 20:58:35 +03:00
Dmitry Porunov
7188d75a28 Just to see what happens 2020-06-24 20:54:28 +03:00
Dmitry Porunov
5b7f35508c Just to see what happens 2020-06-24 20:49:36 +03:00
Dmitry Porunov
6dfebca9e4 Just to see what happens 2020-06-24 20:44:38 +03:00
Dmitry Porunov
5186b9d282 Fix URL Again 2020-06-24 20:38:04 +03:00
Dmitry Porunov
801555b61f Fix path in PKGBUILD, remove unneeded lines in .gitlab-ci.yml 2020-06-24 20:31:47 +03:00
2 changed files with 23 additions and 22 deletions

View File

@@ -4,31 +4,21 @@ stages:
Update-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'"
- VERSION=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
- sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/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)'
# Update PKGBUILD version, source URL and sha256sum
# Update pkgver in PKBUILD
- echo "Updating PKGBUILDS with release information..."
- 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
- echo "Installing Arch"
- pacman -Syu --noconfirm sudo base-devel openssh git openssl
# Makepkg and .SRCINFO
# Build and update .SRCINFO
- cd posy-cursors/
- echo "makepkg"
- sudo -u nobody makepkg -c
@@ -54,6 +44,6 @@ Update-AUR:
- cd aur-posy-cursors
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./
- git add PKGBUILD .SRCINFO
- git commit -m "Release v$_version"
- git commit -m "Release v$VERSION"
- git push
- cd ..

View File

@@ -7,15 +7,26 @@ pkgdesc="Port of Posy's improved cursors"
arch=(any)
url="https://gitlab.com/ykkzde/posy-cursors"
license=(unknown)
source=("$pkgname-$pkgver.tar.gz::$url/-/archive/v$pkgver/posy-cursors-v$pkgver.tar.gz?path=themes") # automatically set in CI, see: /.gitlab-ci.yml
source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/-/archive/v$pkgver/posy-cursors-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 posy-cursors-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"
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
ls -l
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
ls -l *
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
echo "-------------------------------------------------------"
cd $pkgname-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"
}