Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7188d75a28 | ||
|
|
5b7f35508c | ||
|
|
6dfebca9e4 | ||
|
|
5186b9d282 |
@@ -9,17 +9,18 @@ Update-AUR:
|
|||||||
script:
|
script:
|
||||||
- cd ./pkg/aur
|
- cd ./pkg/aur
|
||||||
|
|
||||||
- _version=$(echo $CI_COMMIT_REF_NAME | cut -c 2-)
|
- VERSION=$(echo $CI_COMMIT_REF_NAME)
|
||||||
- echo "Pushing'v$_version'"
|
- echo "$CI_COMMIT_REF_NAME"
|
||||||
|
- echo "Pushing'v$VERSION'"
|
||||||
|
|
||||||
- sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/archive/v$_version/cursorsPosy-v$_version.tar.gz?path=themes
|
- sourceURL=https://gitlab.com/ykkzde/posy-cursors/-/archive/v$VERSION/cursorsPosy-v$VERSION.tar.gz?path=themes
|
||||||
- 'echo "Source: $sourceURL"'
|
- 'echo "Source: $sourceURL"'
|
||||||
- echo "Checking sha256sum checksums"
|
- echo "Checking sha256sum checksums"
|
||||||
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
|
- 'sourceSHA=$(curl -sSL "$sourceURL" | sha256sum | cut -d" " -f1)'
|
||||||
|
|
||||||
# Update PKGBUILD version, source URL and sha256sum
|
# Update PKGBUILD version, source URL and sha256sum
|
||||||
- echo "Updating PKGBUILDS with release information..."
|
- echo "Updating PKGBUILDS with release information..."
|
||||||
- sed "s/^pkgver=.*\$/pkgver=$_version/" -i posy-cursors/PKGBUILD
|
- 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/^source=(\"\(.*\)::.*\").*\$/source=(\"\1::$(echo $sourceURL | sed 's/\//\\\//g')\")/" -i posy-cursors/PKGBUILD
|
||||||
- sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD
|
- sed "s/^sha256sums=.*\$/sha256sums=('$sourceSHA')/" -i posy-cursors/PKGBUILD
|
||||||
|
|
||||||
@@ -52,6 +53,6 @@ Update-AUR:
|
|||||||
- cd aur-posy-cursors
|
- cd aur-posy-cursors
|
||||||
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./
|
- cp ../posy-cursors/{PKGBUILD,.SRCINFO} ./
|
||||||
- git add PKGBUILD .SRCINFO
|
- git add PKGBUILD .SRCINFO
|
||||||
- git commit -m "Release v$_version"
|
- git commit -m "Release v$VERSION"
|
||||||
- git push
|
- git push
|
||||||
- cd ..
|
- cd ..
|
||||||
|
|||||||
@@ -7,15 +7,26 @@ pkgdesc="Port of Posy's improved cursors"
|
|||||||
arch=(any)
|
arch=(any)
|
||||||
url="https://gitlab.com/ykkzde/posy-cursors"
|
url="https://gitlab.com/ykkzde/posy-cursors"
|
||||||
license=(unknown)
|
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
|
sha256sums=('SKIP') # automatically set in CI, see: /.gitlab-ci.yml
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd posy-cursors-v$pkgver/themes
|
echo "-------------------------------------------------------"
|
||||||
install -Ddm755 "$pkgdir/usr/share/icons"
|
echo "-------------------------------------------------------"
|
||||||
cp -dr --no-preserve=ownership posy-white/ "$pkgdir/usr/share/icons/posy-white"
|
echo "-------------------------------------------------------"
|
||||||
cp -dr --no-preserve=ownership posy-black/ "$pkgdir/usr/share/icons/posy-black"
|
ls -l
|
||||||
cp -dr --no-preserve=ownership posy-white-tiny/ "$pkgdir/usr/share/icons/posy-white-tiny"
|
echo "-------------------------------------------------------"
|
||||||
cp -dr --no-preserve=ownership posy-black-tiny/ "$pkgdir/usr/share/icons/posy-black-tiny"
|
echo "-------------------------------------------------------"
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
ls -l *
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
echo "-------------------------------------------------------"
|
||||||
|
cd $pkgname-$pkgver-$pkgrel/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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user