Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cbd402db9b | ||
|
|
4ad5ddec00 | ||
|
|
faf6a27366 | ||
|
|
f7dd5cf6d3 | ||
|
|
06046d478d | ||
|
|
1f7ce8b6fb | ||
|
|
2a391702fd | ||
|
|
3d3125f4fe | ||
|
|
0aa4b0eba3 | ||
|
|
94e06bb116 | ||
|
|
c16ac69f0f | ||
|
|
1adbf2c0f6 | ||
|
|
286a06ac1b | ||
|
|
f1016e321e |
59
.gitlab-ci.yml
Normal file
59
.gitlab-ci.yml
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
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'"
|
||||||
|
|
||||||
|
- 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)'
|
||||||
|
|
||||||
|
# Update PKGBUILD parameters: version, source URL and SHA sum
|
||||||
|
- 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
|
||||||
|
|
||||||
|
# Make AUR package
|
||||||
|
- cd posy-cursors/
|
||||||
|
- echo "makepkg"
|
||||||
|
- sudo -u nobody makepkg -c
|
||||||
|
- sudo -u nobody makepkg --printsrcinfo > .SRCINFO
|
||||||
|
- cd ..
|
||||||
|
|
||||||
|
# Set up SSH for publishing
|
||||||
|
- 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"
|
||||||
|
|
||||||
|
# Publish main package: clone AUR repo, commit update 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 ..
|
||||||
1
pkg/aur/aur.pub
Normal file
1
pkg/aur/aur.pub
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDHfiNi+rOCPKGLB6v9uuYR6GkN6Zd+CdaRbV82A26AUzs48ZG0xZGXHsoRuZY/yCUhcrS2u9xZ16fsAxnyf1QCF1hZVABUYtNhL1eEbSbLNiG9vIWJzbRjgegN/yyiG9ZVhFfNqXtPeapvuM3H44a2XeeFJcvTOfj/alkVjypi/DY/+XpC1IlX+CARC/e0zXHa3KZohn+CfBj8kWZWQEr7+EtKT59pslNxuJPcDUw7sKYLcBBz00BT0vv3lntyvZI1rRsD7AvItOwSZPp6or78Tgp8+O0HvFpjrlNipPEqDPpETIPcjTIVAlvlPFK1J0Rpzud38YdoWGfPiM77k7L7 timvisee@aur
|
||||||
43
pkg/aur/posy-cursors-git/PKGBUILD
Normal file
43
pkg/aur/posy-cursors-git/PKGBUILD
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
# Maintainer: Tim Visee <tim@visee.me>
|
||||||
|
#
|
||||||
|
# This PKGBUILD is managed externally, and is automatically updated here:
|
||||||
|
# - https://gitlab.com/timvisee/ffsend/blob/master/pkg/aur/ffsend-git/PKGBUILD
|
||||||
|
# - Mirror: https://github.com/timvisee/ffsend/blob/master/pkg/aur/ffsend-git/PKGBUILD
|
||||||
|
|
||||||
|
pkgname=ffsend-git
|
||||||
|
pkgver=0.0.0 # automatically set in CI, see: /.gitlab-ci.yml
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Easily and securely share files from the command line. A Firefox Send client."
|
||||||
|
url="https://gitlab.com/timvisee/ffsend"
|
||||||
|
license=('GPL3')
|
||||||
|
source=("ffsend::git+$url.git")
|
||||||
|
sha256sums=('SKIP')
|
||||||
|
arch=('x86_64' 'i686')
|
||||||
|
provides=('ffsend')
|
||||||
|
conflicts=('ffsend')
|
||||||
|
depends=('ca-certificates')
|
||||||
|
makedepends=('openssl>=1.0' 'rust>=1.32' 'cargo' 'cmake')
|
||||||
|
optdepends=('xclip: clipboard support'
|
||||||
|
'bash-completion: support auto completion for bash')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ffsend
|
||||||
|
env CARGO_INCREMENTAL=0 cargo build --release
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/ffsend"
|
||||||
|
|
||||||
|
# Install Binary
|
||||||
|
install -Dm755 "./target/release/ffsend" "$pkgdir/usr/bin/ffsend"
|
||||||
|
|
||||||
|
# Install shell completions and LICENSE file
|
||||||
|
install -Dm644 "contrib/completions/ffsend.bash" \
|
||||||
|
"$pkgdir/etc/bash_completion.d/ffsend"
|
||||||
|
install -Dm644 "contrib/completions/_ffsend" \
|
||||||
|
"$pkgdir/usr/share/zsh/site-functions/_ffsend"
|
||||||
|
install -Dm644 "contrib/completions/ffsend.fish" \
|
||||||
|
"$pkgdir/usr/share/fish/vendor_completions.d/ffsend.fish"
|
||||||
|
install -Dm644 "LICENSE" \
|
||||||
|
"$pkgdir/usr/share/licenses/ffsend/LICENSE"
|
||||||
|
}
|
||||||
21
pkg/aur/posy-cursors/PKGBUILD
Normal file
21
pkg/aur/posy-cursors/PKGBUILD
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
# 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"
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
function buildWhite {
|
function buildWhite {
|
||||||
cd "$sourceWhite"
|
cd "$sourceWhite"
|
||||||
# generate cursors
|
# generate cursors
|
||||||
BUILD="$sourceWhite"/../../Prebuilt/posy-white
|
BUILD="$sourceWhite"/../../themes/posy-white
|
||||||
OUTPUT="$BUILD"/cursors
|
OUTPUT="$BUILD"/cursors
|
||||||
ALIASES="$sourceWhite"/cursorList
|
ALIASES="$sourceWhite"/cursorList
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ function buildWhite {
|
|||||||
function buildWhiteTiny {
|
function buildWhiteTiny {
|
||||||
cd "$sourceWhiteTiny"
|
cd "$sourceWhiteTiny"
|
||||||
# generate cursors
|
# generate cursors
|
||||||
BUILD="$sourceWhiteTiny"/../../Prebuilt/posy-white-tiny
|
BUILD="$sourceWhiteTiny"/../../themes/posy-white-tiny
|
||||||
OUTPUT="$BUILD"/cursors
|
OUTPUT="$BUILD"/cursors
|
||||||
ALIASES="$sourceWhiteTiny"/cursorList
|
ALIASES="$sourceWhiteTiny"/cursorList
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ function buildWhiteTiny {
|
|||||||
function buildBlack {
|
function buildBlack {
|
||||||
cd "$sourceBlack"
|
cd "$sourceBlack"
|
||||||
# generate cursors
|
# generate cursors
|
||||||
BUILD="$sourceBlack"/../../Prebuilt/posy-black
|
BUILD="$sourceBlack"/../../themes/posy-black
|
||||||
OUTPUT="$BUILD"/cursors
|
OUTPUT="$BUILD"/cursors
|
||||||
ALIASES="$sourceBlack"/cursorList
|
ALIASES="$sourceBlack"/cursorList
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@ function buildBlack {
|
|||||||
function buildBlackTiny {
|
function buildBlackTiny {
|
||||||
cd "$sourceBlackTiny"
|
cd "$sourceBlackTiny"
|
||||||
# generate cursors
|
# generate cursors
|
||||||
BUILD="$sourceBlackTiny"/../../Prebuilt/posy-black-tiny
|
BUILD="$sourceBlackTiny"/../../themes/posy-black-tiny
|
||||||
OUTPUT="$BUILD"/cursors
|
OUTPUT="$BUILD"/cursors
|
||||||
ALIASES="$sourceBlackTiny"/cursorList
|
ALIASES="$sourceBlackTiny"/cursorList
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user