Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d34260d45a | ||
|
|
7e752d8e05 | ||
|
|
696e3fcd27 |
@@ -9,25 +9,16 @@ Update-AUR:
|
||||
script:
|
||||
- cd ./pkg/aur
|
||||
|
||||
- VERSION=$(echo $CI_COMMIT_REF_NAME)
|
||||
- echo "$CI_COMMIT_REF_NAME"
|
||||
- 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
|
||||
|
||||
- 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
|
||||
|
||||
@@ -23,7 +23,7 @@ package() {
|
||||
echo "-------------------------------------------------------"
|
||||
echo "-------------------------------------------------------"
|
||||
echo "-------------------------------------------------------"
|
||||
cd $pkgname-$pkgver-$pkgrel/themes
|
||||
cd $pkgname-$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"
|
||||
|
||||
Reference in New Issue
Block a user