-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from Liupold/dev
Dev 2.0
- Loading branch information
Showing
8 changed files
with
484 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
version="$(cat ./version)" | ||
echo "Deploy for version: $version on $(date)" | ||
|
||
# make directory | ||
mkdir -p ./aur/git ./aur/stable | ||
|
||
# create PKGBUILDs | ||
sed -e "s|{%version}|$version.d|g" ./aur/PKGBUILD.git.template \ | ||
> ./aur/git/PKGBUILD | ||
sed -e "s|{%version}|$version|g" ./aur/PKGBUILD.stable.template \ | ||
> ./aur/stable/PKGBUILD | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'PKBUILD' | ||
|
||
on: | ||
push: | ||
branch: | ||
- dev | ||
pull_request: | ||
branch: | ||
- dev | ||
|
||
jobs: | ||
build-dev: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux | ||
options: --privileged | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Arch Linux package (dev) | ||
uses: FFY00/build-arch-package@master | ||
with: | ||
PKGBUILD: $GITHUB_WORKSPACE/aur/dev/PKGBUILD | ||
OUTDIR: $HOME/arch-packages | ||
|
||
build-stable: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux | ||
options: --privileged | ||
volumes: | ||
- /sys/fs/cgroup:/sys/fs/cgroup | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Arch Linux package (stable) | ||
uses: FFY00/build-arch-package@master | ||
with: | ||
PKGBUILD: $GITHUB_WORKSPACE/aur/stable/PKGBUILD | ||
OUTDIR: $HOME/arch-packages |
9 changes: 2 additions & 7 deletions
9
.github/workflows/integrate.yaml → .github/workflows/shellcheck.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# shellcheck disable=SC2034 | ||
# shellcheck disable=SC2154 | ||
# Maintainer: liupold <[email protected]> | ||
|
||
pkgname=pidswallow-dev-git | ||
pkgrel=8 | ||
pkgver=2.0.d # dev | ||
pkgdesc="A script to swallow your terminal automatically" | ||
arch=(x86_64) | ||
url="https://github.com/Liupold/pidswallow/tree/dev" | ||
license=('APACHE') | ||
depends=(xdo xorg-xprop xorg-xev xorg-xwininfo sh) | ||
makedepends=(git) | ||
checkdepends=(shellcheck) | ||
optdepends=('xdotool: Workspace/Desktop Management') | ||
provides=(pidswallow) | ||
conflicts=(pidswallow) | ||
|
||
source=("$pkgname::git+https://github.com/Liupold/pidswallow") | ||
sha256sums=("SKIP") | ||
|
||
pkgver() { | ||
cd "$pkgname" || return 1 | ||
{ | ||
git checkout dev | ||
git stash | ||
git pull | ||
} >/dev/null 2>&1 | ||
|
||
printf "2.0.d.r%s.%s" \ | ||
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | ||
|
||
} | ||
|
||
check() { | ||
cd "$pkgname" || return 1 | ||
git checkout dev > /dev/null 2>&1 | ||
shellcheck "./pidswallow" | ||
} | ||
|
||
package() { | ||
cd "$pkgname" || return 1 | ||
install -Dm755 "./pidswallow" "$pkgdir/usr/bin/pidswallow" | ||
install -Dm644 "./man/pidswallow.1" "$pkgdir/usr/local/man/man1/pidswallow.1" | ||
install -Dm644 "./README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# shellcheck disable=SC2034 | ||
# shellcheck disable=SC2154 | ||
# Maintainer: liupold <[email protected]> | ||
|
||
pkgname=pidswallow | ||
pkgrel=2 | ||
pkgver=1.0 | ||
pkgdesc="A script to swallow your terminal automatically" | ||
arch=(x86_64) | ||
url="https://github.com/Liupold/pidswallow" | ||
license=('APACHE') | ||
depends=(xdotool) | ||
makedepends=(git) | ||
checkdepends=(shellcheck) | ||
provides=(pidswallow) | ||
|
||
source=("$pkgname-$pkgver::https://github.com/Liupold/pidswallow/archive/1.0.tar.gz") | ||
sha256sums=("1ad08b49c9a9502bff47fd58df8b5a06252f7d349a8cdf4105932a77232adb69") | ||
|
||
|
||
check() { | ||
cd "$pkgname-$pkgver" || return 1 | ||
shellcheck "./pidswallow" | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" || return 1 | ||
install -Dm755 "./pidswallow" "$pkgdir/usr/bin/pidswallow" | ||
install -Dm644 "./README.md" "$pkgdir/usr/share/doc/$pkgname/README.md" | ||
} |
Oops, something went wrong.