diff --git a/.github/aur/.SRCINFO.template b/.github/aur/.SRCINFO.template deleted file mode 100644 index fb2b428..0000000 --- a/.github/aur/.SRCINFO.template +++ /dev/null @@ -1,17 +0,0 @@ -pkgbase = kbt - pkgdesc = Keyboard tester in terminal - pkgver = ${PKGVER} - pkgrel = 1 - url = https://github.com/bloznelis/kbt - arch = x86_64 - license = MIT - makedepends = git - makedepends = make - makedepends = cargo - provides = kbt - conflicts = kbt - source = https://github.com/bloznelis/kbt/archive/refs/tags/${PKGVER}.tar.gz - sha256sums = SKIP - -pkgname = kbt - diff --git a/.github/aur/PKGBUILD.template b/.github/aur/PKGBUILD.template deleted file mode 100644 index 51c8a6b..0000000 --- a/.github/aur/PKGBUILD.template +++ /dev/null @@ -1,34 +0,0 @@ -# Maintainer: Energi - -pkgname=kbt -pkgver=${PKGVER} -pkgrel=1 -pkgdesc="Keyboard tester in terminal" -arch=(x86_64) -url="https://github.com/bloznelis/kbt" -license=(MIT) -groups=() -depends=() -makedepends=(git make cargo) -provides=("$pkgname") -conflicts=("$pkgname") -source=("git+$url") -source=("$url/archive/refs/tags/$pkgver.tar.gz") -sha256sums=('SKIP') - -build() { - cd "${pkgname}-${pkgver}" - make build -} - -check() { - cd "${pkgname}-${pkgver}" - make check -} - -package() { - cd "${pkgname}-${pkgver}" - - install -Dm755 target/release/$pkgname "$pkgdir/usr/bin/$pkgname" - install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" -} diff --git a/.github/aur/publish.sh b/.github/aur/publish.sh deleted file mode 100755 index 5794827..0000000 --- a/.github/aur/publish.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -set -e - -WD=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd) -ROOT=${WD%/.github/aur} - -export VERSION=$1 -echo "Publishing to AUR as version ${VERSION}" - -cd $WD - -export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" - -rm -rf .pkg -git clone ssh://aur@aur.archlinux.org/kbt.git .pkg 2>&1 - -export PKGVER=$VERSION - -envsubst '$PKGVER' < .SRCINFO.template > .pkg/.SRCINFO -envsubst '$PKGVER' < PKGBUILD.template > .pkg/PKGBUILD - -cd .pkg - -git config user.name "bloznelis" -git config user.email "bloznelis05@gmail.com" -git add -A - -git commit -m "Release $VERSION" -git push origin master diff --git a/.github/workflows/aur.yaml b/.github/workflows/aur.yaml deleted file mode 100644 index 83aa8d1..0000000 --- a/.github/workflows/aur.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: AUR release - -on: - push: - tags: "*" - -jobs: - aur: - name: Bump AUR version - runs-on: ubuntu-latest - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - steps: - - uses: actions/checkout@v3 - - name: Install SSH key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.AUR_SSH_KEY }} - known_hosts: unnecessary - - name: Push to AUR - run: .github/aur/publish.sh ${{ github.ref_name }}